Repeater only work when there is not filters

Repeaters display database results
I add new search field
I add blow code once I tried to search all repeaters got hidden
import {local} from ‘wix-storage’ ;
import wixLocation from ‘wix-location’ ;
import wixData from “wix-data” ;

$w.onReady(function () {

search();

});

export function searchButton_click() {

let word = $w("#searchBar").value; 

local.setItem("searchWord", word); 

search(); 

}

function search() {
wixData.query(‘CERTIFICATES_ID’)
.contains(‘UID’, $w(“#searchBar”).value)
.or(wixData.query(‘CERTIFICATES_ID’).eq(‘UID’, $w(“#searchBar”).value))
.find()
.then(res => {
$w(‘#repeater1’).data = res.items;
});

I tired with other code

export function searchBar_keyPress(event,$w) {
//Add your code for this event here:
filter($w( ‘#searchBar’ ).value);
}

function filter(searchBar){

$w( ‘#dataset1’ ).setFilter(wixData.filter().contains( “Certificate-ID” , searchBar));
}

But also all repeaters not show

Appreciate your support

You need to make sure that you are using field keys , and not field names in your queries.