Class MoreLikeThisQuery


public class MoreLikeThisQuery extends
  • Field Details

  • Constructor Details

    • MoreLikeThisQuery

      public MoreLikeThisQuery()
    • MoreLikeThisQuery

      public MoreLikeThisQuery(String likeText, String[] moreLikeFields, NamedAnalyzer analyzer)
  • Method Details

    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in class
    • rewrite

      public rewrite(org.apache.lucene.index.IndexReader reader) throws IOException
      rewrite in class
    • toString

      public String toString(String field)
      Specified by:
      toString in class
    • getLikeText

      public String getLikeText()
    • getLikeTexts

      public String[] getLikeTexts()
    • setLikeText

      public void setLikeText(String... likeText)
    • getLikeFields

      public org.apache.lucene.index.Fields[] getLikeFields()
    • setLikeFields

      public void setLikeFields(org.apache.lucene.index.Fields... likeFields)
    • setLikeText

      public void setLikeText(List<String> likeText)
    • setUnlikeFields

      public void setUnlikeFields(org.apache.lucene.index.Fields... unlikeFields)
    • setUnlikeText

      public void setUnlikeText(String[] unlikeText)
    • getMoreLikeFields

      public String[] getMoreLikeFields()
    • setMoreLikeFields

      public void setMoreLikeFields(String[] moreLikeFields)
    • getSimilarity

      public getSimilarity()
    • setSimilarity

      public void setSimilarity( similarity)
    • getAnalyzer

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

      public void setAnalyzer(String analyzerName, org.apache.lucene.analysis.Analyzer analyzer)
    • getMinimumShouldMatch

      public String getMinimumShouldMatch()
      Number of terms that must match the generated query expressed in the common syntax for minimum should match.
      See Also:
    • setMinimumShouldMatch

      public void setMinimumShouldMatch(String minimumShouldMatch)
      Number of terms that must match the generated query expressed in the common syntax for minimum should match. Defaults to 30%.
      See Also:
    • 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)