search on description of product

hi,

When I do that >

function filter(title) {
 if (lastFilterTitle !== title) {
    wixData.query("Stores/Products")
        .limit(5)
        .contains('name', title) 
             .find()
        .then(res => {
            $w('#repeater1').data = res.items;
        })
    lastFilterTitle = title;
  }
}

It works, but if i change to .contains(‘description’, title) It does not work.
He does not know to look in the description or the other parameters of the product in the wix store exept the name of the products.
Is there a known bug on the subject?

thanks

?

?

Hi,
No, there’s no known issue about it. I recommend re-checking the documentation here . Moreover, I recommend debugging your code to make sure that the values of the variables are not undefined.

Best,
Tal.

Hi,
I re-checking and in name its make a search but in description it is not


www.topink.co.il

hi,

You have the search function both in your site and page code (for the תוצאות חיפוש page)
Make sure you change both to search the description field.

I recommend moving the function to the backend and calling it from both the site and page code.
See more here

I changed them both to description and yet it is not working

HI,
Looks like search by description works, i have just changed contains from ‘name’ to ‘description’ and have searched by ’ למדפסות ’