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
FieldsFields inherited from class org.apache.lucene.sandbox.search.PhraseWildcardQuery.PhraseTerm
termPosition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intcollectTermData(PhraseWildcardQuery query, IndexSearcher searcher, List<LeafReaderContext> segments, int remainingMultiTerms, int maxExpansionsForTerm, PhraseWildcardQuery.TermsData termsData) CollectsTermStateandTermStatisticsfor the term (potentially expanded).booleanprotected QuerygetQuery()protected booleaninthashCode()protected voidtoString(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:
hasExpansionsin classPhraseWildcardQuery.PhraseTerm
-
getQuery
- Specified by:
getQueryin 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.PhraseTermCollectsTermStateandTermStatisticsfor the term (potentially expanded).- Specified by:
collectTermDatain classPhraseWildcardQuery.PhraseTerm- Parameters:
termsData-PhraseWildcardQuery.TermsDatato 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:
toStringin classPhraseWildcardQuery.PhraseTerm
-
equals
- Specified by:
equalsin classPhraseWildcardQuery.PhraseTerm
-
hashCode
public int hashCode()- Specified by:
hashCodein classPhraseWildcardQuery.PhraseTerm
-