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.| コンストラクタと説明 |
|---|
ExtendedCommonTermsQuery(org.apache.lucene.search.BooleanClause.Occur highFreqOccur,
org.apache.lucene.search.BooleanClause.Occur lowFreqOccur,
float maxTermFrequency,
boolean disableCoord,
MappedFieldType fieldType) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
protected int |
calcHighFreqMinimumNumberShouldMatch(int numOptional) |
protected int |
calcLowFreqMinimumNumberShouldMatch(int numOptional) |
protected int |
calcMinimumNumberShouldMatch(String spec,
int numOptional) |
String |
getHighFreqMinimumNumberShouldMatchSpec() |
String |
getLowFreqMinimumNumberShouldMatchSpec() |
protected org.apache.lucene.search.Query |
newTermQuery(org.apache.lucene.index.Term term,
org.apache.lucene.index.TermContext context) |
void |
setHighFreqMinimumNumberShouldMatch(String spec) |
void |
setLowFreqMinimumNumberShouldMatch(String spec) |
public 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 クラス内 org.apache.lucene.queries.CommonTermsQueryprotected int calcMinimumNumberShouldMatch(String spec, int numOptional)
protected int calcHighFreqMinimumNumberShouldMatch(int numOptional)
calcHighFreqMinimumNumberShouldMatch クラス内 org.apache.lucene.queries.CommonTermsQuerypublic void setHighFreqMinimumNumberShouldMatch(String spec)
public String getHighFreqMinimumNumberShouldMatchSpec()
public void setLowFreqMinimumNumberShouldMatch(String spec)
public String getLowFreqMinimumNumberShouldMatchSpec()
protected org.apache.lucene.search.Query newTermQuery(org.apache.lucene.index.Term term,
org.apache.lucene.index.TermContext context)
newTermQuery クラス内 org.apache.lucene.queries.CommonTermsQueryCopyright © 2009–2016. All rights reserved.