Class MoreLikeThisQuery

Object
com.liferay.portal.kernel.search.BaseQueryImpl
com.liferay.portal.kernel.search.generic.MoreLikeThisQuery
All Implemented Interfaces:
Query, Serializable

public class MoreLikeThisQuery extends BaseQueryImpl
Author:
Michael C. Han
See Also:
  • Constructor Details

    • MoreLikeThisQuery

      public MoreLikeThisQuery(long companyId)
  • Method Details

    • accept

      public <T> T accept(QueryVisitor<T> queryVisitor)
      Specified by:
      accept in interface Query
      Overrides:
      accept in class BaseQueryImpl
    • addDocumentUID

      public void addDocumentUID(String documentUID)
    • addDocumentUIDs

      public void addDocumentUIDs(Collection<String> documentUIDs)
    • addDocumentUIDs

      public void addDocumentUIDs(String... documentUIDs)
    • addField

      public void addField(String field)
    • addFields

      public void addFields(Collection<String> fields)
    • addFields

      public void addFields(String... fields)
    • addStopWord

      public void addStopWord(String stopWord)
    • addStopWords

      public void addStopWords(Collection<String> stopWords)
    • addStopWords

      public void addStopWords(String... stopWords)
    • getAnalyzer

      public String getAnalyzer()
    • getCompanyId

      public long getCompanyId()
    • getDocumentUIDs

      public Set<String> getDocumentUIDs()
    • getFields

      public List<String> getFields()
    • getLikeText

      public String getLikeText()
    • getMaxDocFrequency

      public Integer getMaxDocFrequency()
    • getMaxQueryTerms

      public Integer getMaxQueryTerms()
    • getMaxWordLength

      public Integer getMaxWordLength()
    • getMinDocFrequency

      public Integer getMinDocFrequency()
    • getMinShouldMatch

      public String getMinShouldMatch()
    • getMinTermFrequency

      public Integer getMinTermFrequency()
    • getMinWordLength

      public Integer getMinWordLength()
    • getStopWords

      public Set<String> getStopWords()
    • getTermBoost

      public Float getTermBoost()
    • getType

      @Deprecated public String getType()
      Deprecated.
      As of Cavanaugh (7.4.x), with no direct replacement
    • isDocumentUIDsEmpty

      public boolean isDocumentUIDsEmpty()
    • isFieldsEmpty

      public boolean isFieldsEmpty()
    • isIncludeInput

      public Boolean isIncludeInput()
    • setAnalyzer

      public void setAnalyzer(String analyzer)
    • setIncludeInput

      public void setIncludeInput(Boolean includeInput)
    • setLikeText

      public void setLikeText(String likeText)
    • setMaxDocFrequency

      public void setMaxDocFrequency(Integer maxDocFrequency)
    • setMaxQueryTerms

      public void setMaxQueryTerms(Integer maxQueryTerms)
    • setMaxWordLength

      public void setMaxWordLength(Integer maxWordLength)
    • setMinDocFrequency

      public void setMinDocFrequency(Integer minDocFrequency)
    • setMinShouldMatch

      public void setMinShouldMatch(String minShouldMatch)
    • setMinTermFrequency

      public void setMinTermFrequency(Integer minTermFrequency)
    • setMinWordLength

      public void setMinWordLength(Integer minWordLength)
    • setTermBoost

      public void setTermBoost(Float termBoost)
    • setType

      @Deprecated public void setType(String type)
      Deprecated.
      As of Cavanaugh (7.4.x), with no direct replacement
    • toString

      public String toString()
      Overrides:
      toString in class Object