Package org.apache.lucene.sandbox.search
Class PhraseWildcardQuery.MultiTerm
java.lang.Object
org.apache.lucene.sandbox.search.PhraseWildcardQuery.PhraseTerm
org.apache.lucene.sandbox.search.PhraseWildcardQuery.MultiTerm
- Enclosing class:
- PhraseWildcardQuery
Phrase term with expansions.
-
Field Summary
Fields inherited from class org.apache.lucene.sandbox.search.PhraseWildcardQuery.PhraseTerm
termPosition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected int
collectTermData
(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) CollectsTermState
andTermStatistics
for the term (potentially expanded).boolean
protected Query
getQuery()
protected boolean
int
hashCode()
protected void
toString
(StringBuilder builder) Methods inherited from class org.apache.lucene.sandbox.search.PhraseWildcardQuery.PhraseTerm
collectTermData
-
Field Details
-
query
-
-
Constructor Details
-
MultiTerm
-
-
Method Details
-
hasExpansions
protected boolean hasExpansions()- Specified by:
hasExpansions
in classPhraseWildcardQuery.PhraseTerm
-
getQuery
- Specified by:
getQuery
in classPhraseWildcardQuery.PhraseTerm
-
collectTermData
protected int collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) throws IOException Description copied from class:PhraseWildcardQuery.PhraseTerm
CollectsTermState
andTermStatistics
for the term (potentially expanded).- Specified by:
collectTermData
in classPhraseWildcardQuery.PhraseTerm
termsData
-PhraseWildcardQuery.TermsData
to update with the collected terms and stats.- Returns:
- The number of expansions or matches in all segments; or 0 if this term does not match in any segment, in this case the phrase query can immediately stop.
- Throws:
IOException
-
toString
- Specified by:
toString
in classPhraseWildcardQuery.PhraseTerm
-
equals
- Specified by:
equals
in classPhraseWildcardQuery.PhraseTerm
-
hashCode
public int hashCode()- Specified by:
hashCode
in classPhraseWildcardQuery.PhraseTerm
-