Example: How to Create a Search for Your Database Collection

In this example, site visitors can search and filter a list of countries to quickly find travel articles they want to read. They can search for keywords in the articles’ titles, and filter the countries according to continent.

check it out here

2 Likes

You should mark / pin this sample on top of the forum :slight_smile:

Heads up… the search text box doesn’t function properly when typing a country. I tried typing in countries and it the dataset wouldn’t sort. Also, there is an error message when trying to open the example with the editor.

Thanks for bringing this to my attention, the editor should work now.
And the search seems to be working at my end, is it still not working for you?
Notice that it filters the article content and not the name of the country as you can see here

@liorwi Thanks! I was searching the title and not the content. Would it make sense to have the search criteria function for both the title and article content? I would imagine people would naturally search that way.

@_eric That’s what I did. Although I showed my results in a table form, I had it search my titles (of videos) and a list of keywords that I put in a field within my collection.