Need help creating search for store products that would use multiple fields in a single search bar

I think i figured it out. I added .toUpperCase() to the filter value for the searchbar keypress event.

Is the following code correct?

 
export function searchBar_keyPress_1(event) {

 if (debounceTimer) {

        clearTimeout(debounceTimer);

        debounceTimer = undefined;

    }

    debounceTimer = setTimeout(() => {

        filter($w("#searchBar").value.toUpperCase(), lastFilterPrice);

    }, 100);


}