Liferay 7.0-ce-b4

com.liferay.portal.kernel.search.generic
Class MatchQuery

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

public class MatchQuery
extends BaseQueryImpl

See Also:
Serialized Form

Nested Class Summary
static class MatchQuery.Operator
           
static class MatchQuery.RewriteMethod
           
static class MatchQuery.Type
           
static class MatchQuery.ZeroTermsQuery
           
 
Field Summary
 
Fields inherited from interface com.liferay.portal.kernel.search.Query
BOOST_DEFAULT
 
Constructor Summary
MatchQuery(String field, String value)
           
 
Method Summary
<T> T
accept(QueryVisitor<T> queryVisitor)
           
 String getAnalyzer()
           
 Float getCutOffFrequency()
           
 String getField()
           
 Float getFuzziness()
           
 MatchQuery.RewriteMethod getFuzzyRewriteMethod()
           
 Integer getMaxExpansions()
           
 String getMinShouldMatch()
           
 MatchQuery.Operator getOperator()
           
 Integer getPrefixLength()
           
 Integer getSlop()
           
 MatchQuery.Type getType()
           
 String getValue()
           
 MatchQuery.ZeroTermsQuery getZeroTermsQuery()
           
 Boolean isFuzzyTranspositions()
           
 Boolean isLenient()
           
 void setAnalyzer(String analyzer)
           
 void setCutOffFrequency(Float cutOffFrequency)
           
 void setFuzziness(Float fuzziness)
           
 void setFuzzyRewriteMethod(MatchQuery.RewriteMethod fuzzyRewriteMethod)
           
 void setFuzzyTranspositions(Boolean fuzzyTranspositions)
           
 void setLenient(Boolean lenient)
           
 void setMaxExpansions(Integer maxExpansions)
           
 void setMinShouldMatch(String minShouldMatch)
           
 void setOperator(MatchQuery.Operator operator)
           
 void setPrefixLength(Integer prefixLength)
           
 void setSlop(Integer slop)
           
 void setType(MatchQuery.Type type)
           
 void setZeroTermsQuery(MatchQuery.ZeroTermsQuery zeroTermsQuery)
           
 
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
 

Constructor Detail

MatchQuery

public MatchQuery(String field,
                  String value)
Method Detail

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)

Liferay 7.0-ce-b4