Package org.apache.lucene.queries
Class ExtendedCommonTermsQuery
java.lang.Object
org.apache.lucene.search.Query
org.apache.lucene.queries.CommonTermsQuery
org.apache.lucene.queries.ExtendedCommonTermsQuery
@Deprecated
public class ExtendedCommonTermsQuery
extends org.apache.lucene.queries.CommonTermsQuery
Deprecated.
Since max_optimization optimization landed in 7.0, normal MatchQuery
             will achieve the same result without any configuration.
Extended version of 
CommonTermsQuery that allows to pass in a
 minimumNumberShouldMatch specification that uses the actual num of high frequent terms
 to calculate the minimum matching terms.- 
Field Summary
Fields inherited from class org.apache.lucene.queries.CommonTermsQuery
highFreqBoost, highFreqMinNrShouldMatch, highFreqOccur, lowFreqBoost, lowFreqMinNrShouldMatch, lowFreqOccur, maxTermFrequency, terms - 
Constructor Summary
ConstructorsConstructorDescriptionExtendedCommonTermsQuery(org.apache.lucene.search.BooleanClause.Occur highFreqOccur, org.apache.lucene.search.BooleanClause.Occur lowFreqOccur, float maxTermFrequency) Deprecated. - 
Method Summary
Modifier and TypeMethodDescriptionprotected intcalcHighFreqMinimumNumberShouldMatch(int numOptional) Deprecated.protected intcalcLowFreqMinimumNumberShouldMatch(int numOptional) Deprecated.protected intcalcMinimumNumberShouldMatch(String spec, int numOptional) Deprecated.Deprecated.Deprecated.floatDeprecated.voidDeprecated.voidDeprecated.Methods inherited from class org.apache.lucene.queries.CommonTermsQuery
add, buildQuery, collectTermStates, equals, getHighFreqBoost, getHighFreqMinimumNumberShouldMatch, getHighFreqOccur, getLowFreqBoost, getLowFreqMinimumNumberShouldMatch, getLowFreqOccur, getTerms, hashCode, newTermQuery, rewrite, setHighFreqMinimumNumberShouldMatch, setLowFreqMinimumNumberShouldMatch, toString, visitMethods inherited from class org.apache.lucene.search.Query
classHash, createWeight, sameClassAs, toString 
- 
Constructor Details
- 
ExtendedCommonTermsQuery
public ExtendedCommonTermsQuery(org.apache.lucene.search.BooleanClause.Occur highFreqOccur, org.apache.lucene.search.BooleanClause.Occur lowFreqOccur, float maxTermFrequency) Deprecated. 
 - 
 - 
Method Details
- 
calcLowFreqMinimumNumberShouldMatch
protected int calcLowFreqMinimumNumberShouldMatch(int numOptional) Deprecated.- Overrides:
 calcLowFreqMinimumNumberShouldMatchin classorg.apache.lucene.queries.CommonTermsQuery
 - 
calcMinimumNumberShouldMatch
Deprecated. - 
calcHighFreqMinimumNumberShouldMatch
protected int calcHighFreqMinimumNumberShouldMatch(int numOptional) Deprecated.- Overrides:
 calcHighFreqMinimumNumberShouldMatchin classorg.apache.lucene.queries.CommonTermsQuery
 - 
setHighFreqMinimumNumberShouldMatch
Deprecated. - 
getHighFreqMinimumNumberShouldMatchSpec
Deprecated. - 
setLowFreqMinimumNumberShouldMatch
Deprecated. - 
getLowFreqMinimumNumberShouldMatchSpec
Deprecated. - 
getMaxTermFrequency
public float getMaxTermFrequency()Deprecated.- Overrides:
 getMaxTermFrequencyin classorg.apache.lucene.queries.CommonTermsQuery
 
 -