pub struct Enquire(/* private fields */);
Expand description
The primary interface to retrieve information from Xapian.
Used to perform searches, faceting, term iteration, expansion, sorting, relevancy and more.
Implementations§
Source§impl Enquire
impl Enquire
Sourcepub fn new(db: impl AsRef<Database>) -> Self
pub fn new(db: impl AsRef<Database>) -> Self
Create a new Enquire
instance associated with the given db
Sourcepub fn add_matchspy<T: MatchSpy + Clone + 'static>(&mut self, spy: &T)
pub fn add_matchspy<T: MatchSpy + Clone + 'static>(&mut self, spy: &T)
Attach a MatchSpy
implementation to this Enquire
Instances of MatchSpy
can be used to implement faceting
Sourcepub fn eset<D: ExpandDecider + 'static>(
&self,
maxitems: u32,
rset: impl AsRef<RSet>,
flags: i32,
decider: impl Into<Option<D>>,
min_wt: f64,
) -> ESet
pub fn eset<D: ExpandDecider + 'static>( &self, maxitems: u32, rset: impl AsRef<RSet>, flags: i32, decider: impl Into<Option<D>>, min_wt: f64, ) -> ESet
Retrieve the term expansion set for this Enquire
An ESet provides terms which may be relevant to the current query
Sourcepub fn mset(
&self,
first: u32,
maxitems: u32,
atleast: impl Into<Option<u32>>,
rset: impl Into<Option<RSet>>,
) -> MSet
pub fn mset( &self, first: u32, maxitems: u32, atleast: impl Into<Option<u32>>, rset: impl Into<Option<RSet>>, ) -> MSet
Sourcepub fn mset_with_decider(
&self,
first: u32,
maxitems: u32,
atleast: impl Into<Option<u32>>,
rset: impl Into<Option<RSet>>,
decider: impl MatchDecider + 'static,
) -> MSet
pub fn mset_with_decider( &self, first: u32, maxitems: u32, atleast: impl Into<Option<u32>>, rset: impl Into<Option<RSet>>, decider: impl MatchDecider + 'static, ) -> MSet
Auto Trait Implementations§
impl Freeze for Enquire
impl !RefUnwindSafe for Enquire
impl !Send for Enquire
impl !Sync for Enquire
impl Unpin for Enquire
impl UnwindSafe for Enquire
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