Trait tantivy::query::Scorer
[−]
[src]
pub trait Scorer: Any + DocSet + 'static { fn score(&mut self) -> Score; fn collect(&mut self, collector: &mut Collector) { ... } }
Scored set of documents matching a query within a specific segment.
See Query
.
Required Methods
fn score(&mut self) -> Score
Returns the score.
This method will perform a bit of computation and is not cached.
Provided Methods
fn collect(&mut self, collector: &mut Collector)
Consumes the complete DocSet
and
push the scored documents to the collector.
Methods
impl Scorer
pub fn is<_T>(&self) -> bool where
_T: Any,
Self: Downcast<_T>,
_T: Any,
Self: Downcast<_T>,
ⓘImportant traits for &'a mut Wpub unsafe fn downcast_ref_unchecked<_T>(&self) -> &_T where
_T: Any,
Self: Downcast<_T>,
ⓘImportant traits for &'a mut W
_T: Any,
Self: Downcast<_T>,
pub fn downcast_ref<_T>(&self) -> Result<&_T, TypeMismatch> where
_T: Any,
Self: Downcast<_T>,
_T: Any,
Self: Downcast<_T>,
ⓘImportant traits for &'a mut Wpub unsafe fn downcast_mut_unchecked<_T>(&mut self) -> &mut _T where
_T: Any,
Self: Downcast<_T>,
ⓘImportant traits for &'a mut W
_T: Any,
Self: Downcast<_T>,
pub fn downcast_mut<_T>(&mut self) -> Result<&mut _T, TypeMismatch> where
_T: Any,
Self: Downcast<_T>,
_T: Any,
Self: Downcast<_T>,
ⓘImportant traits for Box<W>pub unsafe fn downcast_unchecked<_T>(self: Box<Self>) -> Box<_T> where
_T: Any,
Self: Downcast<_T>,
ⓘImportant traits for Box<W>
_T: Any,
Self: Downcast<_T>,
pub fn downcast<_T>(
self: Box<Self>
) -> Result<Box<_T>, DowncastError<Box<Self>>> where
_T: Any,
Self: Downcast<_T>,
self: Box<Self>
) -> Result<Box<_T>, DowncastError<Box<Self>>> where
_T: Any,
Self: Downcast<_T>,
Trait Implementations
impl<_T: Any> Downcast<_T> for Scorer where
_T: Any,
_T: Any,
fn is_type(&self) -> bool
[src]
ⓘImportant traits for &'a mut Wunsafe fn downcast_ref_unchecked(&self) -> &T
[src]
ⓘImportant traits for &'a mut W
fn downcast_ref(&self) -> Result<&T, TypeMismatch>
[src]
ⓘImportant traits for &'a mut Wunsafe fn downcast_mut_unchecked(&mut self) -> &mut T
[src]
ⓘImportant traits for &'a mut W
fn downcast_mut(&mut self) -> Result<&mut T, TypeMismatch>
[src]
ⓘImportant traits for Box<W>unsafe fn downcast_unchecked(self: Box<Self>) -> Box<T>
[src]
ⓘImportant traits for Box<W>
fn downcast(self: Box<Self>) -> Result<Box<T>, DowncastError<Box<Self>>>
[src]
Auto Trait Implementations
Implementations on Foreign Types
impl Scorer for Box<Scorer>
[src]
Implementors
impl Scorer for EmptyScorer
impl<TDocSet: DocSet + 'static> Scorer for ConstScorer<TDocSet>
impl Scorer for AllScorer
impl<TScorer, TDocSetExclude> Scorer for Exclude<TScorer, TDocSetExclude> where
TScorer: Scorer,
TDocSetExclude: DocSet + 'static,impl<TScorer, TScoreCombiner> Scorer for Union<TScorer, TScoreCombiner> where
TScoreCombiner: ScoreCombiner,
TScorer: Scorer,impl<TScorer> Scorer for Intersection<TScorer> where
TScorer: Scorer,impl<TReqScorer, TOptScorer, TScoreCombiner> Scorer for RequiredOptionalScorer<TReqScorer, TOptScorer, TScoreCombiner> where
TReqScorer: Scorer,
TOptScorer: Scorer,
TScoreCombiner: ScoreCombiner,