Package org.apache.lucene.search
Class PhraseWildcardQuery.MultiTerm
- java.lang.Object
-
- org.apache.lucene.search.PhraseWildcardQuery.PhraseTerm
-
- org.apache.lucene.search.PhraseWildcardQuery.MultiTerm
-
- Enclosing class:
- PhraseWildcardQuery
protected static class PhraseWildcardQuery.MultiTerm extends PhraseWildcardQuery.PhraseTerm
Phrase term with expansions.
-
-
Field Summary
Fields Modifier and Type Field Description protected MultiTermQuery
query
-
Fields inherited from class org.apache.lucene.search.PhraseWildcardQuery.PhraseTerm
termPosition
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MultiTerm(MultiTermQuery query, int termPosition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
collectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData)
CollectsTermState
andTermStatistics
for the term (potentially expanded).boolean
equals(Object o)
protected Query
getQuery()
protected boolean
hasExpansions()
int
hashCode()
protected void
toString(StringBuilder builder)
-
Methods inherited from class org.apache.lucene.search.PhraseWildcardQuery.PhraseTerm
collectTermData
-
-
-
-
Field Detail
-
query
protected final MultiTermQuery query
-
-
Constructor Detail
-
MultiTerm
protected MultiTerm(MultiTermQuery query, int termPosition)
-
-
Method Detail
-
hasExpansions
protected boolean hasExpansions()
- Specified by:
hasExpansions
in classPhraseWildcardQuery.PhraseTerm
-
getQuery
protected Query 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
protected void toString(StringBuilder builder)
- Specified by:
toString
in classPhraseWildcardQuery.PhraseTerm
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classPhraseWildcardQuery.PhraseTerm
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classPhraseWildcardQuery.PhraseTerm
-
-