Enum kite::query::Query [] [src]

pub enum Query {
    All {
        score: f32,
    },
    None,
    Term {
        field: FieldRef,
        term: Term,
        scorer: TermScorer,
    },
    MultiTerm {
        field: FieldRef,
        term_selector: MultiTermSelector,
        scorer: TermScorer,
    },
    Conjunction {
        queries: Vec<Query>,
    },
    Disjunction {
        queries: Vec<Query>,
    },
    DisjunctionMax {
        queries: Vec<Query>,
    },
    Filter {
        query: Box<Query>,
        filter: Box<Query>,
    },
    Exclude {
        query: Box<Query>,
        exclude: Box<Query>,
    },
}

Variants

Matches all documents, assigning the specified score to each one

Fields of All

The score to assign to each document

Matches nothing

Matches documents that contain the specified term in the specified field

Fields of Term

The field being searched

The term to search for

The method of scoring each match

Matches documents by a multi term selector Used for prefix, fuzzy and regex queries

Fields of MultiTerm

The field being searched

The term selector to use. All terms that match this selector will be searched

The method of scoring each match.

Joins two queries with an AND operator This intersects the results of the queries. The scores are combined by average

Fields of Conjunction

Joins two queries with an OR operator This unites the results of the queries. The scores are combined by average

Fields of Disjunction

Joins two queries with an OR operator This unites the results of the queries. Unlike a regular Disjunction query, this takes the highest score of each query for a particular match

Fields of DisjunctionMax

Removes documents that do not match the "filter" query from the results Basically the same as a Conjunction query except that the "filter" query does not affect the score

Fields of Filter

Removes documents that match the "exclude" query from the results

Fields of Exclude

Methods

impl Query
[src]

Creates a new All query

Creates a new Term query

Filters the query by another query Only documents that match the other query will remain in the results but the other query will not affect the score

Filters the query to exclude documents that match the other query

Multiplies the score of documents that match the query by the specified "boost" value

Trait Implementations

impl Debug for Query
[src]

Formats the value using the given formatter.

impl PartialEq for Query
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.