I am trying to query the “Description” field in Products Database collection and its not returning any results. But when I query fields like “Name” , i do get the data back. Now, the only difference i see between the two fields is that the “Description” field type is “Rich Text” and the “Name” field is “Text”.
Here is how i am doing the query. I have a text box with ID “iSKU” and on key press event I am calling the function to query collection.
Have some experienced the same issue? Thanks in advance
import wixData from ‘wix-data’; function filter(keyWord)
{
wixData.query(‘Stores/Products’)
.contains(‘description’, keyWord)
.find()
.then(res => {
$w('#repeater1').data = res.items;
});
}
export function iSKU_keyPress(event, $w) {
//Add your code for this event here:
filter($w(‘#iSKU’).value);
}