Class MatchQuery

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

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

    • MatchQuery

      public MatchQuery(String field, String value)
  • Method Details

    • accept

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

      public String getAnalyzer()
    • getCutOffFrequency

      public Float getCutOffFrequency()
    • getField

      public String getField()
    • getFuzziness

      public Float getFuzziness()
    • getFuzzyRewriteMethod

      public MatchQuery.RewriteMethod getFuzzyRewriteMethod()
    • getMaxExpansions

      public Integer getMaxExpansions()
    • getMinShouldMatch

      public String getMinShouldMatch()
    • getOperator

      public MatchQuery.Operator getOperator()
    • getPrefixLength

      public Integer getPrefixLength()
    • getSlop

      public Integer getSlop()
    • getType

      public MatchQuery.Type getType()
    • getValue

      public String getValue()
    • getZeroTermsQuery

      public MatchQuery.ZeroTermsQuery getZeroTermsQuery()
    • isFuzzyTranspositions

      public Boolean isFuzzyTranspositions()
    • isLenient

      public Boolean isLenient()
    • setAnalyzer

      public void setAnalyzer(String analyzer)
    • setCutOffFrequency

      public void setCutOffFrequency(Float cutOffFrequency)
    • setFuzziness

      public void setFuzziness(Float fuzziness)
    • setFuzzyRewriteMethod

      public void setFuzzyRewriteMethod(MatchQuery.RewriteMethod fuzzyRewriteMethod)
    • setFuzzyTranspositions

      public void setFuzzyTranspositions(Boolean fuzzyTranspositions)
    • setLenient

      public void setLenient(Boolean lenient)
    • setMaxExpansions

      public void setMaxExpansions(Integer maxExpansions)
    • setMinShouldMatch

      public void setMinShouldMatch(String minShouldMatch)
    • setOperator

      public void setOperator(MatchQuery.Operator operator)
    • setPrefixLength

      public void setPrefixLength(Integer prefixLength)
    • setSlop

      public void setSlop(Integer slop)
    • setType

      public void setType(MatchQuery.Type type)
    • setZeroTermsQuery

      public void setZeroTermsQuery(MatchQuery.ZeroTermsQuery zeroTermsQuery)
    • toString

      public String toString()
      Overrides:
      toString in class Object