public class ExtendedCommonTermsQuery
extends org.apache.lucene.queries.CommonTermsQuery
CommonTermsQuery that allows to pass in a
 minimumNumberShouldMatch specification that uses the actual num of high frequent terms
 to calculate the minimum matching terms.| Constructor and Description | 
|---|
| ExtendedCommonTermsQuery(org.apache.lucene.search.BooleanClause.Occur highFreqOccur,
                        org.apache.lucene.search.BooleanClause.Occur lowFreqOccur,
                        float maxTermFrequency,
                        boolean disableCoord,
                        MappedFieldType fieldType) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected int | calcHighFreqMinimumNumberShouldMatch(int numOptional) | 
| protected int | calcLowFreqMinimumNumberShouldMatch(int numOptional) | 
| protected int | calcMinimumNumberShouldMatch(java.lang.String spec,
                            int numOptional) | 
| java.lang.String | getHighFreqMinimumNumberShouldMatchSpec() | 
| java.lang.String | getLowFreqMinimumNumberShouldMatchSpec() | 
| float | getMaxTermFrequency() | 
| protected org.apache.lucene.search.Query | newTermQuery(org.apache.lucene.index.Term term,
            org.apache.lucene.index.TermContext context) | 
| void | setHighFreqMinimumNumberShouldMatch(java.lang.String spec) | 
| void | setLowFreqMinimumNumberShouldMatch(java.lang.String spec) | 
add, buildQuery, collectTermContext, equals, getHighFreqBoost, getHighFreqMinimumNumberShouldMatch, getHighFreqOccur, getLowFreqBoost, getLowFreqMinimumNumberShouldMatch, getLowFreqOccur, getTerms, hashCode, isCoordDisabled, rewrite, setHighFreqMinimumNumberShouldMatch, setLowFreqMinimumNumberShouldMatch, toStringpublic ExtendedCommonTermsQuery(org.apache.lucene.search.BooleanClause.Occur highFreqOccur,
                                org.apache.lucene.search.BooleanClause.Occur lowFreqOccur,
                                float maxTermFrequency,
                                boolean disableCoord,
                                MappedFieldType fieldType)
protected int calcLowFreqMinimumNumberShouldMatch(int numOptional)
calcLowFreqMinimumNumberShouldMatch in class org.apache.lucene.queries.CommonTermsQueryprotected int calcMinimumNumberShouldMatch(java.lang.String spec,
                                           int numOptional)
protected int calcHighFreqMinimumNumberShouldMatch(int numOptional)
calcHighFreqMinimumNumberShouldMatch in class org.apache.lucene.queries.CommonTermsQuerypublic void setHighFreqMinimumNumberShouldMatch(java.lang.String spec)
public java.lang.String getHighFreqMinimumNumberShouldMatchSpec()
public void setLowFreqMinimumNumberShouldMatch(java.lang.String spec)
public java.lang.String getLowFreqMinimumNumberShouldMatchSpec()
public float getMaxTermFrequency()
getMaxTermFrequency in class org.apache.lucene.queries.CommonTermsQueryprotected org.apache.lucene.search.Query newTermQuery(org.apache.lucene.index.Term term,
                                                      org.apache.lucene.index.TermContext context)
newTermQuery in class org.apache.lucene.queries.CommonTermsQuery