Add docs to new Query methods (#307)

This commit is contained in:
Jason Wolfe
2018-05-18 13:53:29 +09:00
committed by Paul Masurel
parent 71d41ca209
commit 0cea706f10
3 changed files with 4 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ impl BooleanQuery {
BooleanQuery::from(occur_term_queries)
}
/// Deconstructed view of the clauses making up this query.
pub fn clauses(&self) -> &[(Occur, Box<Query>)] {
&self.subqueries[..]
}