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.CommonTermsQueryDeprecated.Since max_optimization optimization landed in 7.0, normal MatchQuery will achieve the same result without any configuration.Extended version ofCommonTermsQuerythat allows to pass in aminimumNumberShouldMatchspecification that uses the actual num of high frequent terms to calculate the minimum matching terms.
-
-
Constructor Summary
Constructors Constructor Description ExtendedCommonTermsQuery(org.apache.lucene.search.BooleanClause.Occur highFreqOccur, org.apache.lucene.search.BooleanClause.Occur lowFreqOccur, float maxTermFrequency)Deprecated.
-
Method Summary
Modifier and Type Method Description protected intcalcHighFreqMinimumNumberShouldMatch(int numOptional)Deprecated.protected intcalcLowFreqMinimumNumberShouldMatch(int numOptional)Deprecated.protected intcalcMinimumNumberShouldMatch(java.lang.String spec, int numOptional)Deprecated.java.lang.StringgetHighFreqMinimumNumberShouldMatchSpec()Deprecated.java.lang.StringgetLowFreqMinimumNumberShouldMatchSpec()Deprecated.floatgetMaxTermFrequency()Deprecated.voidsetHighFreqMinimumNumberShouldMatch(java.lang.String spec)Deprecated.voidsetLowFreqMinimumNumberShouldMatch(java.lang.String spec)Deprecated.-
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, visit
-
-
-
-
Method Detail
-
calcLowFreqMinimumNumberShouldMatch
protected int calcLowFreqMinimumNumberShouldMatch(int numOptional)
Deprecated.- Overrides:
calcLowFreqMinimumNumberShouldMatchin classorg.apache.lucene.queries.CommonTermsQuery
-
calcMinimumNumberShouldMatch
protected int calcMinimumNumberShouldMatch(java.lang.String spec, int numOptional)Deprecated.
-
calcHighFreqMinimumNumberShouldMatch
protected int calcHighFreqMinimumNumberShouldMatch(int numOptional)
Deprecated.- Overrides:
calcHighFreqMinimumNumberShouldMatchin classorg.apache.lucene.queries.CommonTermsQuery
-
setHighFreqMinimumNumberShouldMatch
public void setHighFreqMinimumNumberShouldMatch(java.lang.String spec)
Deprecated.
-
getHighFreqMinimumNumberShouldMatchSpec
public java.lang.String getHighFreqMinimumNumberShouldMatchSpec()
Deprecated.
-
setLowFreqMinimumNumberShouldMatch
public void setLowFreqMinimumNumberShouldMatch(java.lang.String spec)
Deprecated.
-
getLowFreqMinimumNumberShouldMatchSpec
public java.lang.String getLowFreqMinimumNumberShouldMatchSpec()
Deprecated.
-
getMaxTermFrequency
public float getMaxTermFrequency()
Deprecated.- Overrides:
getMaxTermFrequencyin classorg.apache.lucene.queries.CommonTermsQuery
-
-