com.liferay.portal.kernel.search.generic
Class MatchQuery
java.lang.Object
com.liferay.portal.kernel.search.BaseQueryImpl
com.liferay.portal.kernel.search.generic.MatchQuery
- All Implemented Interfaces:
- Query, Serializable
public class MatchQuery
- extends BaseQueryImpl
- See Also:
- Serialized Form
| Methods inherited from class com.liferay.portal.kernel.search.BaseQueryImpl |
getBoost, getPostFilter, getPreBooleanFilter, getQueryConfig, getWrappedQuery, hasChildren, isDefaultBoost, setBoost, setPostFilter, setPreBooleanFilter, setQueryConfig |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MatchQuery
public MatchQuery(String field,
String value)
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)