java.lang.Object
org.apache.lucene.search.MultiTermQuery.RewriteMethod
org.apache.lucene.search.TermCollectingRewrite<B>
- Direct Known Subclasses:
ScoringRewrite
,TopTermsRewrite
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
Add a MultiTermQuery term to the top-level query builder.protected abstract void
addClause
(B topLevel, Term term, int docCount, float boost, TermStates states) protected abstract Query
Finalize the creation of the query from the builder.(package private) final void
collectTerms
(IndexReader reader, MultiTermQuery query, TermCollectingRewrite.TermCollector collector) protected abstract B
Return a suitable builder for the top-level Query for holding all expanded terms.Methods inherited from class org.apache.lucene.search.MultiTermQuery.RewriteMethod
getTermsEnum, rewrite
-
Constructor Details
-
TermCollectingRewrite
TermCollectingRewrite()
-
-
Method Details
-
getTopLevelBuilder
Return a suitable builder for the top-level Query for holding all expanded terms.- Throws:
IOException
-
build
Finalize the creation of the query from the builder. -
addClause
Add a MultiTermQuery term to the top-level query builder.- Throws:
IOException
-
addClause
protected abstract void addClause(B topLevel, Term term, int docCount, float boost, TermStates states) throws IOException - Throws:
IOException
-
collectTerms
final void collectTerms(IndexReader reader, MultiTermQuery query, TermCollectingRewrite.TermCollector collector) throws IOException - Throws:
IOException
-