public class MoreLikeThisQuery
extends org.apache.lucene.search.Query
| Constructor and Description |
|---|
MoreLikeThisQuery(String likeText,
String[] moreLikeFields,
org.apache.lucene.analysis.Analyzer analyzer)
Deprecated.
|
MoreLikeThisQuery(String likeText,
String[] moreLikeFields,
org.apache.lucene.analysis.Analyzer analyzer,
String fieldName) |
| 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) |
@Deprecated public MoreLikeThisQuery(String likeText, String[] moreLikeFields, org.apache.lucene.analysis.Analyzer analyzer)
MoreLikeThisQuery(String, String[], Analyzer, String) instead.public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
throws IOException
rewrite in class org.apache.lucene.search.QueryIOExceptionpublic String toString(String field)
toString in class org.apache.lucene.search.Querypublic 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.