public class MoreLikeThisQuery
extends org.apache.lucene.search.Query
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_MINIMUM_SHOULD_MATCH |
Constructor and Description |
---|
MoreLikeThisQuery() |
MoreLikeThisQuery(java.lang.String likeText,
java.lang.String[] moreLikeFields,
org.apache.lucene.analysis.Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
float |
getBoostTermsFactor() |
org.apache.lucene.index.Fields[] |
getLikeFields() |
java.lang.String |
getLikeText() |
java.lang.String[] |
getLikeTexts() |
int |
getMaxDocFreq() |
int |
getMaxQueryTerms() |
int |
getMaxWordLen() |
int |
getMinDocFreq() |
java.lang.String |
getMinimumShouldMatch()
Number of terms that must match the generated query expressed in the
common syntax for minimum should match.
|
int |
getMinTermFrequency() |
int |
getMinWordLen() |
java.lang.String[] |
getMoreLikeFields() |
org.apache.lucene.search.similarities.Similarity |
getSimilarity() |
java.util.Set<?> |
getStopWords() |
int |
hashCode() |
boolean |
isBoostTerms() |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
void |
setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer) |
void |
setBoostTerms(boolean boostTerms) |
void |
setBoostTermsFactor(float boostTermsFactor) |
void |
setLikeFields(org.apache.lucene.index.Fields... likeFields) |
void |
setLikeText(java.util.List<java.lang.String> likeText) |
void |
setLikeText(java.lang.String... likeText) |
void |
setMaxDocFreq(int maxDocFreq) |
void |
setMaxQueryTerms(int maxQueryTerms) |
void |
setMaxWordLen(int maxWordLen) |
void |
setMinDocFreq(int minDocFreq) |
void |
setMinimumShouldMatch(java.lang.String minimumShouldMatch)
Number of terms that must match the generated query expressed in the
common syntax for minimum should match.
|
void |
setMinTermFrequency(int minTermFrequency) |
void |
setMinWordLen(int minWordLen) |
void |
setMoreLikeFields(java.lang.String[] moreLikeFields) |
void |
setSimilarity(org.apache.lucene.search.similarities.Similarity similarity) |
void |
setStopWords(java.util.Set<?> stopWords) |
void |
setUnlikeFields(org.apache.lucene.index.Fields... unlikeFields) |
void |
setUnlikeText(java.lang.String[] unlikeText) |
java.lang.String |
toString(java.lang.String field) |
public static final java.lang.String DEFAULT_MINIMUM_SHOULD_MATCH
public MoreLikeThisQuery()
public MoreLikeThisQuery(java.lang.String likeText, java.lang.String[] moreLikeFields, org.apache.lucene.analysis.Analyzer analyzer)
public int hashCode()
hashCode
in class org.apache.lucene.search.Query
public boolean equals(java.lang.Object obj)
equals
in class org.apache.lucene.search.Query
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws java.io.IOException
rewrite
in class org.apache.lucene.search.Query
java.io.IOException
public java.lang.String toString(java.lang.String field)
toString
in class org.apache.lucene.search.Query
public java.lang.String getLikeText()
public java.lang.String[] getLikeTexts()
public void setLikeText(java.lang.String... likeText)
public org.apache.lucene.index.Fields[] getLikeFields()
public void setLikeFields(org.apache.lucene.index.Fields... likeFields)
public void setLikeText(java.util.List<java.lang.String> likeText)
public void setUnlikeFields(org.apache.lucene.index.Fields... unlikeFields)
public void setUnlikeText(java.lang.String[] unlikeText)
public java.lang.String[] getMoreLikeFields()
public void setMoreLikeFields(java.lang.String[] moreLikeFields)
public org.apache.lucene.search.similarities.Similarity getSimilarity()
public void setSimilarity(org.apache.lucene.search.similarities.Similarity similarity)
public org.apache.lucene.analysis.Analyzer getAnalyzer()
public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)
public java.lang.String getMinimumShouldMatch()
public void setMinimumShouldMatch(java.lang.String minimumShouldMatch)
public int getMinTermFrequency()
public void setMinTermFrequency(int minTermFrequency)
public int getMaxQueryTerms()
public void setMaxQueryTerms(int maxQueryTerms)
public java.util.Set<?> getStopWords()
public void setStopWords(java.util.Set<?> stopWords)
public int getMinDocFreq()
public void setMinDocFreq(int minDocFreq)
public int getMaxDocFreq()
public void setMaxDocFreq(int maxDocFreq)
public int getMinWordLen()
public void setMinWordLen(int minWordLen)
public int getMaxWordLen()
public void setMaxWordLen(int maxWordLen)
public boolean isBoostTerms()
public void setBoostTerms(boolean boostTerms)
public float getBoostTermsFactor()
public void setBoostTermsFactor(float boostTermsFactor)