searchAndDelete method

Future<void> searchAndDelete(
  1. {Query query,
  2. Reach reach}
)

Deletes all documents that match the filter.

Optional argument queryString defines a query string. The syntax is based on Lucene query syntax. For a description of the syntax, see SearchQueryParser.

Optional argument filter defines a filter.

If both queryString and filter are non-null, the database will receive an AndFilter that contains both the parsed filter and the other filter.

Implementation

Future<void> searchAndDelete({
  Query query,
  Reach reach,
}) async {
  return DocumentSearchChunkedRequest(
    collection: this,
    query: query,
    reach: reach,
  ).delegateTo(database.adapter);
}