pub struct BoostQuery {
pub inner: Box<dyn Query>,
pub boost: f32,
}Expand description
Boost query - multiplies the score of the inner query
Fields§
§inner: Box<dyn Query>§boost: f32Implementations§
Trait Implementations§
Source§impl Debug for BoostQuery
impl Debug for BoostQuery
Source§impl Query for BoostQuery
impl Query for BoostQuery
Source§fn scorer<'a>(&'a self, reader: &'a SegmentReader) -> ScorerFuture<'a>
fn scorer<'a>(&'a self, reader: &'a SegmentReader) -> ScorerFuture<'a>
Create a scorer for this query against a single segment (async)
Source§fn count_estimate<'a>(&'a self, reader: &'a SegmentReader) -> CountFuture<'a>
fn count_estimate<'a>(&'a self, reader: &'a SegmentReader) -> CountFuture<'a>
Estimated number of matching documents in a segment (async)
Auto Trait Implementations§
impl Freeze for BoostQuery
impl !RefUnwindSafe for BoostQuery
impl Send for BoostQuery
impl Sync for BoostQuery
impl Unpin for BoostQuery
impl !UnwindSafe for BoostQuery
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> 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