So I'm trying to create a list of database items that would work as a "items that are similar to the one you are viewing" list, just like many website like Amazon.
What I'm trying to do is to query the title of the item that is being browsed, and match similar results depending on words that are contained in both the current item, and the items displayed in that list.
For example if the item being displayed is named "PS4 : Spiderman" I want items such as "Spiderman Game" and "Spiderman Artbook" "PS4 : Uncharted" etc... to be displayed in that list.
I tried to apply the "contain" filter, both on the dataset, and with code, but it doesn't work.
let filter = wixData.filter(); filter = filter .contains("title", $w("#text54").text) .contains("categorie", $w("#button31").label); $w("#dataset4").setFilter(filter);