Hello,
I currently have a search bar created that is linked to my repeater/database. It is being extremely picky about its searches and am not sure what is wrong. In my database I created multiple columns including 1) Titles 2)REN and 3) Keywords. When I created the keywords column, I separated everything by a comma. I thought this was the issue but it appears not so much. I want my search bar to look for multiple keywords or phrases. Can anyone tell me why this code may not be working?
import wixData from ‘wix-data’;
export function input1_keyPress(event) {
let searchValue = $w(‘#input1’).value;
$w(‘#dataset1’).setFilter(wixData.filter().contains(‘title’, searchValue)
.or(wixData.filter().contains(‘ern’, searchValue))
.or(wixData.filter().contains(‘keywords’, searchValue)));
}