Scroll up… it is in my initial post.
HERE is is again:
import wixData from ‘wix-data’;
// For full API documentation, including code examples, visit http://wix.to/94BuAAs
$w.onReady(function () {
//TODO: write your page related code here…
});
export function searchButton_onclick() {
wixData.query(‘CVOA-Magazines’)
.contains(‘article1’ || ‘article2’ || ‘article3’ || ‘article4’,$w(’ #input1 ‘).value)
.find()
.then(res=>{
$w(’ #table1 ').rows = res.items;
});
}
Following her original code for the contains was:
.contains(‘article1’,$w(’ #input1 ').value)
And that works as expected. I added the OR condition to check the other fields. It only returns items with the match in ‘article1’.