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

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

Should

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.

Must

Document without the term are excluded from the search.

MustNot

Document that contain the term are excluded from the search.

Methods

impl Occur[src]

pub fn to_char(self) -> char[src]

Returns the one-char prefix symbol for this Occur.

  • Should => '?',
  • Must => '+'
  • Not => '-'

Trait Implementations

impl Clone for Occur[src]

impl Copy for Occur[src]

impl Eq for Occur[src]

impl PartialEq<Occur> for Occur[src]

impl Debug for Occur[src]

impl Hash for Occur[src]

impl StructuralPartialEq for Occur[src]

impl StructuralEq for Occur[src]

Auto Trait Implementations

impl Send for Occur

impl Sync for Occur

impl Unpin for Occur

impl UnwindSafe for Occur

impl RefUnwindSafe for Occur

Blanket Implementations

impl<T> Fruit for T where
    T: Send + Downcast
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]