public class MoreLikeThisQuery extends Query
Constructor and Description |
---|
MoreLikeThisQuery(String likeText,
String[] moreLikeFields,
Analyzer analyzer,
String fieldName) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Analyzer |
getAnalyzer() |
String |
getLikeText() |
int |
getMaxQueryTerms() |
int |
getMinDocFreq() |
int |
getMinTermFrequency() |
String[] |
getMoreLikeFields() |
float |
getPercentTermsToMatch() |
Set<?> |
getStopWords() |
int |
hashCode() |
Query |
rewrite(IndexReader reader) |
void |
setAnalyzer(Analyzer analyzer) |
void |
setLikeText(String likeText) |
void |
setMaxQueryTerms(int maxQueryTerms) |
void |
setMinDocFreq(int minDocFreq) |
void |
setMinTermFrequency(int minTermFrequency) |
void |
setMoreLikeFields(String[] moreLikeFields) |
void |
setPercentTermsToMatch(float percentTermsToMatch) |
void |
setStopWords(Set<?> stopWords) |
String |
toString(String field) |
void |
visit(QueryVisitor visitor) |
classHash, createWeight, sameClassAs, toString
public Query rewrite(IndexReader reader) throws IOException
rewrite
in class Query
IOException
public float getPercentTermsToMatch()
public void setPercentTermsToMatch(float percentTermsToMatch)
public Analyzer getAnalyzer()
public void setAnalyzer(Analyzer analyzer)
public String getLikeText()
public void setLikeText(String likeText)
public int getMaxQueryTerms()
public void setMaxQueryTerms(int maxQueryTerms)
public int getMinTermFrequency()
public void setMinTermFrequency(int minTermFrequency)
public String[] getMoreLikeFields()
public void setMoreLikeFields(String[] moreLikeFields)
public Set<?> getStopWords()
public void setStopWords(Set<?> stopWords)
public int getMinDocFreq()
public void setMinDocFreq(int minDocFreq)
public void visit(QueryVisitor visitor)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.