wixData question

I have an input field that searches a dataset for book titles.
Here’s the code:


import wixData from "wix-data";
 

let debouncetimer;
export function searchBook_keyPress_1(event) {
 if (debouncetimer) {
    clearTimeout(debouncetimer);
   debouncetimer = undefined;
  }
  debouncetimer = setTimeout(() => {
  filter($w('#searchBook').value);
  }, 200);
}

let lastFilterName;
function filter (name){
 if (lastFilterName !== name) {
  $w('#dataset2').setFilter(wixData.filter().contains('name', name,))
  lastFilterName = name;}
} 

I want the functionality of being able to search by Author (ID: ppAuthor) as well.
How would I do this?

Any help would be greatly appreciated.