Struct tantivy::query::BooleanQuery
[−]
[src]
pub struct BooleanQuery { /* fields omitted */ }
The boolean query combines a set of queries
The documents matched by the boolean query are those which
- match all of the sub queries associated with the
Must
occurence - match none of the sub queries associated with the
MustNot
occurence. - match at least one of the subqueries that is not
a
MustNot
occurence.
Methods
impl BooleanQuery
[src]
pub fn new_multiterms_query(terms: Vec<Term>) -> BooleanQuery
[src]
Helper method to create a boolean query matching a given list of terms. The resulting query is a disjunction of the terms.
Trait Implementations
impl Debug for BooleanQuery
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl From<Vec<(Occur, Box<Query>)>> for BooleanQuery
[src]
impl Query for BooleanQuery
[src]
fn as_any(&self) -> &Any
[src]
Used to make it possible to cast Box into a specific type. This is mostly useful for unit tests. Read more
fn weight(&self, searcher: &Searcher) -> Result<Box<Weight>>
[src]
Create the weight associated to a query. Read more
fn search(
&self,
searcher: &Searcher,
collector: &mut Collector
) -> Result<TimerTree>
[src]
&self,
searcher: &Searcher,
collector: &mut Collector
) -> Result<TimerTree>
Search works as follows : Read more