org.elasticsearch.common.lucene.search
Class MoreLikeThisQuery

java.lang.Object
  extended by org.apache.lucene.search.Query
      extended by org.elasticsearch.common.lucene.search.MoreLikeThisQuery
All Implemented Interfaces:
Serializable, Cloneable

public class MoreLikeThisQuery
extends org.apache.lucene.search.Query

See Also:
Serialized Form

Field Summary
static float DEFAULT_PERCENT_TERMS_TO_MATCH
           
 
Constructor Summary
MoreLikeThisQuery()
           
MoreLikeThisQuery(String likeText, String[] moreLikeFields, org.apache.lucene.analysis.Analyzer analyzer)
           
 
Method Summary
 org.apache.lucene.analysis.Analyzer getAnalyzer()
           
 float getBoostTermsFactor()
           
 String getLikeText()
           
 int getMaxDocFreq()
           
 int getMaxQueryTerms()
           
 int getMaxWordLen()
           
 int getMinDocFreq()
           
 int getMinTermFrequency()
           
 int getMinWordLen()
           
 String[] getMoreLikeFields()
           
 float getPercentTermsToMatch()
           
 org.apache.lucene.search.Similarity getSimilarity()
           
 Set<?> getStopWords()
           
 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 setLikeText(String likeText)
           
 void setMaxDocFreq(int maxDocFreq)
           
 void setMaxQueryTerms(int maxQueryTerms)
           
 void setMaxWordLen(int maxWordLen)
           
 void setMinDocFreq(int minDocFreq)
           
 void setMinTermFrequency(int minTermFrequency)
           
 void setMinWordLen(int minWordLen)
           
 void setMoreLikeFields(String[] moreLikeFields)
           
 void setPercentTermsToMatch(float percentTermsToMatch)
           
 void setSimilarity(org.apache.lucene.search.Similarity similarity)
           
 void setStopWords(Set<?> stopWords)
           
 String toString(String field)
           
 
Methods inherited from class org.apache.lucene.search.Query
clone, combine, createWeight, equals, extractTerms, getBoost, getSimilarity, hashCode, mergeBooleanQueries, setBoost, toString, weight
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PERCENT_TERMS_TO_MATCH

public static final float DEFAULT_PERCENT_TERMS_TO_MATCH
See Also:
Constant Field Values
Constructor Detail

MoreLikeThisQuery

public MoreLikeThisQuery()

MoreLikeThisQuery

public MoreLikeThisQuery(String likeText,
                         String[] moreLikeFields,
                         org.apache.lucene.analysis.Analyzer analyzer)
Method Detail

rewrite

public org.apache.lucene.search.Query rewrite(org.apache.lucene.index.IndexReader reader)
                                       throws IOException
Overrides:
rewrite in class org.apache.lucene.search.Query
Throws:
IOException

toString

public String toString(String field)
Specified by:
toString in class org.apache.lucene.search.Query

getLikeText

public String getLikeText()

setLikeText

public void setLikeText(String likeText)

getMoreLikeFields

public String[] getMoreLikeFields()

setMoreLikeFields

public void setMoreLikeFields(String[] moreLikeFields)

getSimilarity

public org.apache.lucene.search.Similarity getSimilarity()

setSimilarity

public void setSimilarity(org.apache.lucene.search.Similarity similarity)

getAnalyzer

public org.apache.lucene.analysis.Analyzer getAnalyzer()

setAnalyzer

public void setAnalyzer(org.apache.lucene.analysis.Analyzer analyzer)

getPercentTermsToMatch

public float getPercentTermsToMatch()

setPercentTermsToMatch

public void setPercentTermsToMatch(float percentTermsToMatch)

getMinTermFrequency

public int getMinTermFrequency()

setMinTermFrequency

public void setMinTermFrequency(int minTermFrequency)

getMaxQueryTerms

public int getMaxQueryTerms()

setMaxQueryTerms

public void setMaxQueryTerms(int maxQueryTerms)

getStopWords

public Set<?> getStopWords()

setStopWords

public void setStopWords(Set<?> stopWords)

getMinDocFreq

public int getMinDocFreq()

setMinDocFreq

public void setMinDocFreq(int minDocFreq)

getMaxDocFreq

public int getMaxDocFreq()

setMaxDocFreq

public void setMaxDocFreq(int maxDocFreq)

getMinWordLen

public int getMinWordLen()

setMinWordLen

public void setMinWordLen(int minWordLen)

getMaxWordLen

public int getMaxWordLen()

setMaxWordLen

public void setMaxWordLen(int maxWordLen)

isBoostTerms

public boolean isBoostTerms()

setBoostTerms

public void setBoostTerms(boolean boostTerms)

getBoostTermsFactor

public float getBoostTermsFactor()

setBoostTermsFactor

public void setBoostTermsFactor(float boostTermsFactor)


Copyright © 2009-2012. All Rights Reserved.