How do I create a search box that can search by different settings?

In this form I need to be able to search a property database by three different ways. First by address, second by GPIN number, and third by Doc Number. Right now I have the search box that says enter information set to search by address and it works fine using the code below. I need to be able to use the drop down box to the left to make the search box search by address, GPIN Number, or Doc Number which they can select from the drop down. Tried everything but no success. Can someone help. See screen shot below the code.

import wixData from ‘wix-data’;

let debounceTimer;
export function input64_keyPress(event) {
if (debounceTimer){
clearTimeout(debounceTimer);
debounceTimer=undefined;
}
debounceTimer=setTimeout(()=>{
filter($w(“#input64”).value);
},200);
}
let lastFilterAddress
function filter (address) {
if (lastFilterAddress !== address) {
$w(‘#dataset20’).setFilter(wixData.filter().contains(“address”, address));
lastFilterAddress=address;
}
}
export function button116_click(event) {
$w(‘#input64’).value = null ;
$w(“#dataset20”).refresh()
.then( () => {
console.log(“Done refreshing the dataset”);
} );

}