[][src]Struct octopus_query::Term

pub struct Term<'a> { /* fields omitted */ }

Basic term query

Methods

impl<'a> Term<'a>[src]

pub fn new(n_docs_in_index: usize, postings: &'a [i32]) -> Self[src]

Create Term query

Arguments

  • n_docs_in_index - Total documents in your index, in order to compute idf, pass 1 if you dont care
  • postings - sorted array of integer document ids

Trait Implementations

impl<'a> Query for Term<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Term<'a>

impl<'a> Send for Term<'a>

impl<'a> Sync for Term<'a>

impl<'a> Unpin for Term<'a>

impl<'a> UnwindSafe for Term<'a>

Blanket Implementations

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

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

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

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

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

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.