documentMatches function

BooleanExpression documentMatches(
  1. Object query
)

Whether the document matches the full-text search query (a String in the search query language, or an expression that evaluates to one).

Only allowed in the query of Pipeline.search:

firestore.pipeline().collection('restaurants').search(
  documentMatches('waffles OR pancakes'),
  sort: [score().descending()],
);

Not verified against a backend: the Enterprise emulator does not support search.

Implementation

BooleanExpression documentMatches(Object query) =>
    BooleanExpression(FunctionExpression('document_matches', <Object?>[query]));