Enum tantivy::query::Occur [] [src]

pub enum Occur {
    Should,
    Must,
    MustNot,
}

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

Variants

For a given document to be considered for scoring, at least one of the document with the Should or the Must Occur constraint must be within the document.

Document without the term are excluded from the search.

Document that contain the term are excluded from the search.

Trait Implementations

impl Debug for Occur
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for Occur
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Occur
[src]

impl Eq for Occur
[src]

impl PartialEq for Occur
[src]

[src]

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

1.0.0
[src]

This method tests for !=.