I would like to search in certain fields only.
Currently to achieve this I am adding all fields necessary as per below, however thinking about keeping this up-to-date in the future (if more fields are added to blueprints), I was wondering if there is a way to actually just pass the fields that I do not want to search in, instead of all that I do want to search in?
$results = $databaseItems->bettersearch($query, 'title|firstName|lastName|pronouns|city|state|country|basedCity|basedState|basedCountry|basedCitySecond|basedStateSecond|basedCountrySecond|languageGroup|link|bio|themes|year|secondaryYear|dimensions|medium|description|collectionBody|artworkType|languageGroup|artist|curator|exhibitionType|venue|externalArtist|publications', ['words' => true]);
Thank you!