- One search expression constructed with
.search. - Zero or more equality expressions constructed with
.eq.
searchField. The
filter expressions can use any of the filterFields defined in the index.
For all other filtering use filter.
To learn about full text search, see Indexes.
Type parameters
Methods
search
▸ search(fieldName, query): SearchFilterFinalizer<Document, SearchIndexConfig>
Search for the terms in query within doc[fieldName].
This will do a full text search that returns results where any word of of
query appears in the field.
Documents will be returned based on their relevance to the query. This
takes into account:
- How many words in the query appear in the text?
- How many times do they appear?
- How long is the text field?
Parameters
Returns
SearchFilterFinalizer<Document, SearchIndexConfig>