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
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
calcHighFreqMinimumNumberShouldMatch(int numOptional)
|
protected int |
calcLowFreqMinimumNumberShouldMatch(int numOptional)
|
protected int |
calcMinimumNumberShouldMatch(String
|
String |
getHighFreqMinimumNumberShouldMatchSpec()
|
String |
getLowFreqMinimumNumberShouldMatchSpec()
|
protected org |
newTermQuery(org
|
void |
setHighFreqMinimumNumberShouldMatch(String
|
void |
setLowFreqMinimumNumberShouldMatch(String
|
add, buildQuery, collectTermContext, equals, extractTerms, getHighFreqMinimumNumberShouldMatch, getLowFreqMinimumNumberShouldMatch, 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, FieldMapper <?> mapper)
protected int calcLowFreqMinimumNumberShouldMatch(int numOptional)
protected int calcMinimumNumberShouldMatch(Stringspec, int numOptional)
protected int calcHighFreqMinimumNumberShouldMatch(int numOptional)
public void setHighFreqMinimumNumberShouldMatch(Stringspec)
public StringgetHighFreqMinimumNumberShouldMatchSpec()
public void setLowFreqMinimumNumberShouldMatch(Stringspec)
public StringgetLowFreqMinimumNumberShouldMatchSpec()
protected org.apache .lucene .search .Query newTermQuery(org .apache .lucene .index .Term term, org .apache .lucene .index .TermContext context)