Problem with Search bar Corvid


I put a search bar in my store and I’m using the product collection
database, but I have a problem. I want to filter by name and description,
but the search result is filtered by name only.

import wixData from “wix-data”;

let debounceTimer;
export function SearchBar_keyPress(event, $w) {
if (debounceTimer) {
debounceTimer = undefined;
debounceTimer = setTimeout(() => {
}, 200);

let lastFilterTitle;
function filter(search) {
if (lastFilterTitle !== search) {
$w(“#Products”).setFilter(wixData.filter().contains(‘name’, search)
.or(wixData.filter().contains(‘description’, search)));
lastFilterTitle = search;