Hello all together,
I have a little problem with my code. I have a search bar and several selection menus connected to my dataset, filtering works almost perfectly.
In the search bar I would like to search for any text that occurs in my dataset - but so far only the code that searches for exactly that text works.
For example, I would like to be able to filter for "java and angular", but since this word combination does not occur in my dataset, I can only filter for "java" or "angular".
Is there a way to fix this problem?
My code is the following:
function search() { $w("#dataset1").onReady(function () { $w("#dataset1").setFilter(wixData.filter().contains('tags', String($w('#dropdown1').value)) .and(wixData.filter().contains("location", String($w('#dropdown2').value))) .and(wixData.filter().contains("tags", String($w('#radioGroup1').value))) .and(wixData.filter().contains("tags", String($w('#radioGroup2').value))) .and(wixData.filter().contains("freitextSuche", String($w('#searchBar').value)))) .then(count) $w("#resetButton").show(); }) }
Thank you for your help :)
How to create a SEARCH-ENGINE, read the following ....
into the world of SEARCH & FILTER-ENGINE. You will find more info and example in your adventure.
Good luck and have fun.