[][src]Struct tantivy::query::RequiredOptionalScorer

pub struct RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> { /* fields omitted */ }

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

This is useful for queries like +somethingrequired somethingoptional.

Note that somethingoptional has no impact on the DocSet.

Implementations

impl<TReqScorer, TOptScorer, TScoreCombiner> RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
    TOptScorer: DocSet
[src]

pub fn new(
    req_scorer: TReqScorer,
    opt_scorer: TOptScorer
) -> RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner>
[src]

Creates a new RequiredOptionalScorer.

Trait Implementations

impl<TReqScorer, TOptScorer, TScoreCombiner> DocSet for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
    TReqScorer: DocSet,
    TOptScorer: DocSet
[src]

impl<TReqScorer, TOptScorer, TScoreCombiner> Scorer for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
    TReqScorer: Scorer,
    TOptScorer: Scorer,
    TScoreCombiner: ScoreCombiner, 
[src]

Auto Trait Implementations

impl<TReqScorer, TOptScorer, TScoreCombiner> RefUnwindSafe for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
    TOptScorer: RefUnwindSafe,
    TReqScorer: RefUnwindSafe,
    TScoreCombiner: RefUnwindSafe

impl<TReqScorer, TOptScorer, TScoreCombiner> Send for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
    TOptScorer: Send,
    TReqScorer: Send,
    TScoreCombiner: Send

impl<TReqScorer, TOptScorer, TScoreCombiner> Sync for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
    TOptScorer: Sync,
    TReqScorer: Sync,
    TScoreCombiner: Sync

impl<TReqScorer, TOptScorer, TScoreCombiner> Unpin for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
    TOptScorer: Unpin,
    TReqScorer: Unpin,
    TScoreCombiner: Unpin

impl<TReqScorer, TOptScorer, TScoreCombiner> UnwindSafe for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
    TOptScorer: UnwindSafe,
    TReqScorer: UnwindSafe,
    TScoreCombiner: UnwindSafe

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> Downcast for T where
    T: Any
[src]

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

impl<T> Erased for T[src]

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

impl<T> Fruit for T where
    T: Send + Downcast
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,