To be more precise → there are even 2x missing onReadys() !!!
$w.onReady(()=>{
$w('#myDatasetIdhere').onReady(()=>{
$w("#searchButton").onClick(()=>{myFunction();}
});
});
function myFunction() {
$w("#dataset1").setFilter(wixData.filter()
.contains("_id", searchInfo))
.then((results)=> {console.log("Dataset is now filtered");
$w("#repeater1").data = results.items;
}).catch((err)=> {console.log(err);});
}