pub struct MultiQueryPreprocessor<E: QueryExpander> { /* private fields */ }Expand description
Multi-query expansion preprocessor.
Expands a single query into multiple related queries using different strategies. This can help retrieve documents that match different phrasings or aspects of the original query.
Implementations§
Source§impl<E: QueryExpander> MultiQueryPreprocessor<E>
impl<E: QueryExpander> MultiQueryPreprocessor<E>
Sourcepub fn with_max_queries(self, max: usize) -> Self
pub fn with_max_queries(self, max: usize) -> Self
Set the maximum number of expanded queries.
Sourcepub fn with_original_query(self, include: bool) -> Self
pub fn with_original_query(self, include: bool) -> Self
Whether to include the original query in results.
Trait Implementations§
Source§impl<E: Clone + QueryExpander> Clone for MultiQueryPreprocessor<E>
impl<E: Clone + QueryExpander> Clone for MultiQueryPreprocessor<E>
Source§fn clone(&self) -> MultiQueryPreprocessor<E>
fn clone(&self) -> MultiQueryPreprocessor<E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E: Debug + QueryExpander> Debug for MultiQueryPreprocessor<E>
impl<E: Debug + QueryExpander> Debug for MultiQueryPreprocessor<E>
Source§impl<E: QueryExpander> QueryPreprocessor for MultiQueryPreprocessor<E>
impl<E: QueryExpander> QueryPreprocessor for MultiQueryPreprocessor<E>
Auto Trait Implementations§
impl<E> Freeze for MultiQueryPreprocessor<E>where
E: Freeze,
impl<E> RefUnwindSafe for MultiQueryPreprocessor<E>where
E: RefUnwindSafe,
impl<E> Send for MultiQueryPreprocessor<E>
impl<E> Sync for MultiQueryPreprocessor<E>
impl<E> Unpin for MultiQueryPreprocessor<E>where
E: Unpin,
impl<E> UnsafeUnpin for MultiQueryPreprocessor<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for MultiQueryPreprocessor<E>where
E: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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