BetaOptional BetaaddFields?: Selectable[]The fields to add to each document, specified as a Selectable.
Optional BetalanguageCode?: stringThe BCP-47 language code of text in the search query, such as "en" or "sr".
Optional Betalimit?: numberThe maximum number of documents to return from the search stage after scoring and sorting.
Optional Betaoffset?: numberThe number of documents to skip from the beginning of the search result set.
Betaquery: BooleanExpression | stringSpecifies the search query that will be used to query and score documents by the search stage.
Optional BetaretrievalDepth?: numberThe maximum number of documents to retrieve from the search index before scoring and sorting.
Optional Betasort?: Ordering | Ordering[]Orderings specify how the returned documents are sorted. One or more orderings are required.
Options defining how a Search stage is evaluated. See Pipeline.search.