[−][src]Struct tantivy::query::RequiredOptionalScorer
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
.
Methods
impl<TReqScorer, TOptScorer, TScoreCombiner> RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
TOptScorer: DocSet,
[src]
TOptScorer: DocSet,
pub fn new(
req_scorer: TReqScorer,
opt_scorer: TOptScorer
) -> RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner>
[src]
req_scorer: TReqScorer,
opt_scorer: TOptScorer
) -> RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner>
Creates a new RequiredOptionalScorer
.
Trait Implementations
impl<TReqScorer, TOptScorer, TScoreCombiner> DocSet for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
TReqScorer: DocSet,
TOptScorer: DocSet,
[src]
TReqScorer: DocSet,
TOptScorer: DocSet,
fn advance(&mut self) -> bool
[src]
fn doc(&self) -> DocId
[src]
fn size_hint(&self) -> u32
[src]
fn skip_next(&mut self, target: DocId) -> SkipResult
[src]
fn fill_buffer(&mut self, buffer: &mut [DocId]) -> usize
[src]
fn append_to_bitset(&mut self, bitset: &mut BitSet)
[src]
fn count(&mut self, delete_bitset: &DeleteBitSet) -> u32
[src]
fn count_including_deleted(&mut self) -> u32
[src]
impl<TReqScorer, TOptScorer, TScoreCombiner> Scorer for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
TReqScorer: Scorer,
TOptScorer: Scorer,
TScoreCombiner: ScoreCombiner,
[src]
TReqScorer: Scorer,
TOptScorer: Scorer,
TScoreCombiner: ScoreCombiner,
Auto Trait Implementations
impl<TReqScorer, TOptScorer, TScoreCombiner> RefUnwindSafe for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
TOptScorer: RefUnwindSafe,
TReqScorer: RefUnwindSafe,
TScoreCombiner: RefUnwindSafe,
TOptScorer: RefUnwindSafe,
TReqScorer: RefUnwindSafe,
TScoreCombiner: RefUnwindSafe,
impl<TReqScorer, TOptScorer, TScoreCombiner> Send for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
TOptScorer: Send,
TReqScorer: Send,
TScoreCombiner: Send,
TOptScorer: Send,
TReqScorer: Send,
TScoreCombiner: Send,
impl<TReqScorer, TOptScorer, TScoreCombiner> Sync for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
TOptScorer: Sync,
TReqScorer: Sync,
TScoreCombiner: Sync,
TOptScorer: Sync,
TReqScorer: Sync,
TScoreCombiner: Sync,
impl<TReqScorer, TOptScorer, TScoreCombiner> Unpin for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
TOptScorer: Unpin,
TReqScorer: Unpin,
TScoreCombiner: Unpin,
TOptScorer: Unpin,
TReqScorer: Unpin,
TScoreCombiner: Unpin,
impl<TReqScorer, TOptScorer, TScoreCombiner> UnwindSafe for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
TOptScorer: UnwindSafe,
TReqScorer: UnwindSafe,
TScoreCombiner: UnwindSafe,
TOptScorer: UnwindSafe,
TReqScorer: UnwindSafe,
TScoreCombiner: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
fn into_any(self: Box<T>) -> Box<dyn Any + 'static>
[src]
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
fn as_any(&self) -> &(dyn Any + 'static)
[src]
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any,
[src]
T: Send + Sync + Any,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T> Fruit for T where
T: Send + Downcast,
[src]
T: Send + Downcast,
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,