Help creating a custom search of site.

I have created a search bar on my site and used the below code. For some reason it only shows results form the county field from my database.

How do I get it to search all the other fields?

import wixData from 'wix-data';

$w.onReady(function () {})

export function input1_keyPress(event, $w)

{
 let SearchValue = $w('#input1').value;
    $w('#dynamicDataset').setFilter(wixData.filter().contains('firstName', SearchValue))
    $w('#dynamicDataset').setFilter(wixData.filter().contains('position', SearchValue))
    $w('#dynamicDataset').setFilter(wixData.filter().contains('team', SearchValue))
    $w('#dynamicDataset').setFilter(wixData.filter().contains('city', SearchValue))
    $w('#dynamicDataset').setFilter(wixData.filter().contains('county', SearchValue))
}

Because county is the last setFilter code line that you use.

https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#setFilter
Setting a dataset’s filter overrides existing filters that were previously set using thesetFilter()function or using the Dataset Settings panel in the Editor.

Have a look at the API reference for more info about this and code examples.

Thanks…I’m a real novice at this. Can you advise or show a further example?