Search when some words do not match

Hi, if a user enters multiple words in the search but only some of them match the field key entry from the data collection, how can I display the matching results?
Example: User searches for brand + product: “Apple iPhone 14”. The entry for the field key “product” is “iPhone 14” and the brand is created as a reference field and refers to “Apple”. What do I have to do that the match to the product is found?
Topic: #search

function setEvents ( ) {
$w ( ‘#inputSearch’ ). onKeyPress (( event ) => {
if ( debounceTimer ) {
clearTimeout ( debounceTimer );
debounceTimer = undefined ;
}
debounceTimer = setTimeout (() => {
filter ( $w ( ‘#inputSearch’ ). value );
}, 500 );
});
}

function filter ( title ) {
let newFilter = wixData . filter ();
let searchList = title . split ( " " )

**if**  ( title ) 
    newFilter  =  newFilter . contains ( 'product' ,  title ); 

$w ( '#dataset1' ). setFilter ( newFilter );  
lastFilterTitle  =  title ;   

}

With title . split ( " " ) I try to separate every word. But I get this error message:

Caused by: Error: Failed to build a filter.
WDE0044: Invalid .contains parameter value [Array]. .contains parameter must be a String…

I don’t know how to integrate this array into the filter.
Can anybody help?