The class of the object you want to run the search for.
The function that will receive all the filters and run the actual search
Function that performs a find by Key operation (Either simple or compound keys)
Adds a filter for the search. For example: If you want to search for people whose age is greater than 30 and their height is between 1.80m and 2.00m, you would do:
searcher.filter({
age: { gt: 30 },
height: { gte: 1.8, lte: 2 }
}).search()
Optionalselect: ProjectionFor<TObject>Optionallimit: numberOptionalafterCursor: unknownOptionalpaginatedVersion: TPaginatedOptionalsequenceKey: SequenceKeyDo the actual search by sending all the configured filters to the provided search function
This class represents a search intended to be run by any search provider. They way you use it is by setting filters on the properties of the object you want to search and then run it. Check the documentation on the individual methods to know more about how to do so.