pub struct DefaultSearchLogger;
Expand description
A dummy SearchLogger
which does nothing.
Trait Implementations§
Source§impl<Q: RankingRuleQueryTrait> SearchLogger<Q> for DefaultSearchLogger
impl<Q: RankingRuleQueryTrait> SearchLogger<Q> for DefaultSearchLogger
Source§fn initial_query(&mut self, _query: &Q)
fn initial_query(&mut self, _query: &Q)
Logs the initial query
Source§fn initial_universe(&mut self, _universe: &RoaringBitmap)
fn initial_universe(&mut self, _universe: &RoaringBitmap)
Logs the value of the initial set of all candidates
Source§fn query_for_initial_universe(&mut self, _query: &Q)
fn query_for_initial_universe(&mut self, _query: &Q)
Logs the query that was used to compute the set of all candidates
Source§fn ranking_rules(&mut self, _rr: &[Box<dyn RankingRule<'_, Q> + '_>])
fn ranking_rules(&mut self, _rr: &[Box<dyn RankingRule<'_, Q> + '_>])
Logs the ranking rules used to perform the search query
Source§fn add_to_results(&mut self, _docids: &[u32])
fn add_to_results(&mut self, _docids: &[u32])
Logs the addition of document ids to the final results
Source§fn log_internal_state(&mut self, _rr: &dyn Any)
fn log_internal_state(&mut self, _rr: &dyn Any)
Logs an internal state in the search algorithms
Source§fn start_iteration_ranking_rule(
&mut self,
_ranking_rule_idx: usize,
_ranking_rule: &dyn RankingRule<'_, Q>,
_query: &Q,
_universe: &RoaringBitmap,
)
fn start_iteration_ranking_rule( &mut self, _ranking_rule_idx: usize, _ranking_rule: &dyn RankingRule<'_, Q>, _query: &Q, _universe: &RoaringBitmap, )
Logs the start of a ranking rule’s iteration.
Source§fn next_bucket_ranking_rule(
&mut self,
_ranking_rule_idx: usize,
_ranking_rule: &dyn RankingRule<'_, Q>,
_universe: &RoaringBitmap,
_candidates: &RoaringBitmap,
)
fn next_bucket_ranking_rule( &mut self, _ranking_rule_idx: usize, _ranking_rule: &dyn RankingRule<'_, Q>, _universe: &RoaringBitmap, _candidates: &RoaringBitmap, )
Logs the end of the computation of a ranking rule bucket
Source§fn skip_bucket_ranking_rule(
&mut self,
_ranking_rule_idx: usize,
_ranking_rule: &dyn RankingRule<'_, Q>,
_candidates: &RoaringBitmap,
)
fn skip_bucket_ranking_rule( &mut self, _ranking_rule_idx: usize, _ranking_rule: &dyn RankingRule<'_, Q>, _candidates: &RoaringBitmap, )
Logs the skipping of a ranking rule bucket
Source§fn end_iteration_ranking_rule(
&mut self,
_ranking_rule_idx: usize,
_ranking_rule: &dyn RankingRule<'_, Q>,
_universe: &RoaringBitmap,
)
fn end_iteration_ranking_rule( &mut self, _ranking_rule_idx: usize, _ranking_rule: &dyn RankingRule<'_, Q>, _universe: &RoaringBitmap, )
Logs the end of a ranking rule’s iteration.
Auto Trait Implementations§
impl Freeze for DefaultSearchLogger
impl RefUnwindSafe for DefaultSearchLogger
impl Send for DefaultSearchLogger
impl Sync for DefaultSearchLogger
impl Unpin for DefaultSearchLogger
impl UnwindSafe for DefaultSearchLogger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more