@archaeous @shantanukumar847 , really thanks for the help
Finally, I got it
Apart from your help, I also use this post’s code from JD, and the setFilter example in the api that is really clear
https://www.wix.com/velo/forum/coding-with-velo/using-an-or-operator-to-filter-by-multiple-fields-in-a-dataset-at-once-for-a-repeater
// API Reference: https://www.wix.com/velo/reference/api-overview/introduction
// “Hello, World!” Example: https://learn-code.wix.com/en/article/1-hello-world
import wixData from "wix-data";
$w.onReady(() => {
});
let debounceTimer;
export function input1_keyPress(event) {
if (debounceTimer) {
clearTimeout(debounceTimer);
debounceTimer = undefined;
}
debounceTimer = setTimeout( () => {
filter($w('#input1').value);
}, 200);
}
let lastFilterTitle;
function filter(title) {
if (lastFilterTitle !== title) {
let filter = wixData.filter().contains('claveProducto',title)
.or(wixData.filter().contains('clave1Producto',title));
$w('#dataset1').setFilter(filter)
lastFilterTitle = title;
}
}