public class MoreLikeThisQuery
extends org.apache.lucene.search.Query
Constructor and Description |
---|
MoreLikeThisQuery(String likeText,
String[] moreLikeFields,
org.apache.lucene.analysis.Analyzer analyzer) |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.Analyzer |
getAnalyzer() |
String |
getLikeText() |
int |
getMaxQueryTerms() |
int |
getMinDocFreq() |
int |
getMinTermFrequency() |
String[] |
getMoreLikeFields() |
float |
getPercentTermsToMatch() |
Set |
getStopWords() |
org.apache.lucene.search.Query |
rewrite(org.apache.lucene.index.IndexReader reader) |
void |
setAnalyzer(org.apache.lucene.analysis.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) |
public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
rewrite
in class org.apache.lucene.search.Query
IOException
public String toString(String field)
toString
in class org.apache.lucene.search.Query
public float getPercentTermsToMatch()
public void setPercentTermsToMatch(float percentTermsToMatch)
public org.apache.lucene.analysis.Analyzer getAnalyzer()
public void setAnalyzer(org.apache.lucene.analysis.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)
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.