Utilizing the searh bar function

Hi guys,
i need help with this search bar function.
So basically ive tried and copied codes out there and none of them work.
So on the product search. i want to be able to type in a product name and then press enter to search to show up the product i typed in.

Please help

thanks,
ray

I dont have a current code.
None of the codes work.
it has an underline saying it doesnt function.

but heres the code i used

Import wixData from ‘wix-data’ ;
$w.onReady (function () {
//TODO: write your page related code here…

}) ;

export function input1_keyPress(event, $w) {
let searchValue = $w(“#input1”).value;
$w("#dataset1).setFilter(wixData.filter().contains(‘name’, searchValue).
or(wixData.filter().contains(‘city’, searchValue))) ;
}

this is the error i get with this code i used. please see below with ** comments i made.

**parsing error: unexpected token wixData >> Import wixData from ‘wix-data’ ;

**whole row is not a valid sector >> $w("#dataset1).setFilter(wixData.filter().contains(‘name’, searchValue).

so what im tyring to get the seach function to work with shop? is this possible without a repeater?