Module tantivy::query

source ·
Expand description

Module containing the different query implementations.

Structs§

  • Query that matches all of the documents.
  • Scorer associated with the AllQuery query.
  • Weight associated with the AllQuery query.
  • A weight struct for Fuzzy Term and Regex Queries
  • A BitSetDocSet makes it possible to iterate through a bitset as if it was a DocSet.
  • A struct used for computing BM25 scores.
  • The boolean query returns a set of documents that matches the Boolean combination of constituent subqueries.
  • Weight associated to the BoolQuery.
  • BoostQuery is a wrapper over a query used to boost its score.
  • Weight associated to the BoostQuery.
  • ConstScoreQuery is a wrapper over a query to provide a constant score. It can avoid unnecessary score computation on the wrapped query.
  • Wraps a DocSet and simply returns a constant Scorer. The ConstScorer is useful if you have a DocSet where you needed a scorer.
  • Take max score of different scorers and optionally sum it with other matches multiplied by tie_breaker
  • The disjunction max query returns documents matching one or more wrapped queries, called query clauses or clauses.
  • EmptyQuery is a dummy Query in which no document matches.
  • EmptyScorer is a dummy Scorer in which no document matches.
  • EmptyWeight is a dummy Weight in which no document matches.
  • Filters a given DocSet by removing the docs from a given DocSet.
  • Query that matches all documents with a non-null value in the specified field.
  • Object describing the score of a given document. It is organized in trees.
  • FastFieldRangeWeight uses the fast field to execute range queries.
  • A Fuzzy Query matches all of the documents containing a specific term that is within Levenshtein distance
  • IPFastFieldRangeWeight uses the ip address fast field to execute range queries.
  • Creates a DocSet that iterate through the intersection of two or more DocSets.
  • A query that matches all of the documents similar to a document or a set of field values provided.
  • The builder for more-like-this query
  • PhrasePrefixQuery matches a specific sequence of words followed by term of which only a prefix is known.
  • PhraseQuery matches a specific sequence of words.
  • Tantivy’s Query parser
  • RangeQuery matches all documents that have at least one term within a defined range.
  • A Regex Query matches all of the documents containing a specific term that matches a regex pattern.
  • Given a required scorer and an optional scorer matches all document from the required scorer and complements the score using the optional scorer.
  • Sums the score of different scorers.
  • Sums the score of different scorers and keeps the count of scorers which matched.
  • A Term query matches all of the documents containing a specific term.
  • A Term Set Query matches all of the documents containing any of the Term provided
  • Creates a DocSet that iterate through the union of two or more DocSets.

Enums§

  • Argument used in Query::weight(..)
  • Defines whether a term in a query must be present, should be present or must not be present.
  • Possible error that may happen when parsing a query.

Traits§

  • An interface to compute the statistics needed in BM25 scoring.
  • The Query trait defines a set of documents and a scoring method for those documents.
  • Implements box_clone.
  • The ScoreCombiner trait defines how to compute an overall score given a list of scores.
  • Scored set of documents matching a query within a specific segment.
  • A Weight is the specialization of a Query for a given set of segments.

Functions§