[][src]Module tantivy::query

Query Module

Structs

AllQuery

Query that matches all of the documents.

AllScorer

Scorer associated to the AllQuery query.

AllWeight

Weight associated to the AllQuery query.

AutomatonWeight

A weight struct for Fuzzy Term and Regex Queries

BitSetDocSet

A BitSetDocSet makes it possible to iterate through a bitset as if it was a DocSet.

BooleanQuery

The boolean query returns a set of documents that matches the Boolean combination of constituent subqueries.

BoostQuery

BoostQuery is a wrapper over a query used to boost its score.

ConstScorer

Wraps a DocSet and simply returns a constant Scorer. The ConstScorer is useful if you have a DocSet where you needed a scorer.

EmptyQuery

EmptyQuery is a dummy Query in which no document matches.

EmptyScorer

EmptyScorer is a dummy Scorer in which no document matches.

EmptyWeight

EmptyWeight is a dummy Weight in which no document matches.

Exclude

Filters a given DocSet by removing the docs from a given DocSet.

Explanation

Object describing the score of a given document. It is organized in trees.

FuzzyTermQuery

A Fuzzy Query matches all of the documents containing a specific term that is within Levenshtein distance

Intersection

Creates a DocSet that iterate through the intersection of two or more DocSets.

PhraseQuery

PhraseQuery matches a specific sequence of words.

QueryParser

Tantivy's Query parser

RangeQuery

RangeQuery match all documents that have at least one term within a defined range.

RegexQuery

A Regex Query matches all of the documents containing a specific term that matches a regex pattern.

RequiredOptionalScorer

Given a required scorer and an optional scorer matches all document from the required scorer and complements the score using the optional scorer.

TermQuery

A Term query matches all of the documents containing a specific term.

Union

Creates a DocSet that iterate through the union of two or more DocSets.

Enums

Occur

Defines whether a term in a query must be present, should be present or must be not present.

QueryParserError

Possible error that may happen when parsing a query.

Traits

Query

The Query trait defines a set of documents and a scoring method for those documents.

Scorer

Scored set of documents matching a query within a specific segment.

Weight

A Weight is the specialization of a Query for a given set of segments.

Functions

intersect_scorers

Returns the intersection scorer.