pub struct ScoreOperator {
pub scorer: Arc<dyn Scorer>,
pub source: Arc<dyn Operator>,
pub query_terms: Vec<String>,
pub field: FieldName,
}Expand description
Score_q: apply a Scorer to every entry of a source posting list.
IDF and per-document length are hoisted out of the inner loop.
Fields§
§scorer: Arc<dyn Scorer>§source: Arc<dyn Operator>§query_terms: Vec<String>§field: FieldNameImplementations§
Trait Implementations§
Source§impl Operator for ScoreOperator
impl Operator for ScoreOperator
fn execute(&self, ctx: &ExecutionContext) -> OperatorResult
fn cost_estimate(&self, stats: &IndexStats) -> f64
Auto Trait Implementations§
impl !RefUnwindSafe for ScoreOperator
impl !UnwindSafe for ScoreOperator
impl Freeze for ScoreOperator
impl Send for ScoreOperator
impl Sync for ScoreOperator
impl Unpin for ScoreOperator
impl UnsafeUnpin for ScoreOperator
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