pub struct KeywordQuery<'a> {
pub datasets: &'a [String],
pub text: &'a str,
pub top_k: usize,
pub filter: Option<&'a MetadataFilter>,
}Expand description
Keyword (BM25) query.
Fields§
§datasets: &'a [String]§text: &'a str§top_k: usize§filter: Option<&'a MetadataFilter>Trait Implementations§
Source§impl<'a> Clone for KeywordQuery<'a>
impl<'a> Clone for KeywordQuery<'a>
Auto Trait Implementations§
impl<'a> Forget for KeywordQuery<'a>
impl<'a> Freeze for KeywordQuery<'a>
impl<'a> Move for KeywordQuery<'a>
impl<'a> RefUnwindSafe for KeywordQuery<'a>
impl<'a> Send for KeywordQuery<'a>
impl<'a> Sync for KeywordQuery<'a>
impl<'a> Unpin for KeywordQuery<'a>
impl<'a> UnsafeUnpin for KeywordQuery<'a>
impl<'a> UnwindSafe for KeywordQuery<'a>
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