public class MatchQuery extends BaseQueryImpl
Modifier and Type | Class and Description |
---|---|
static class |
MatchQuery.Operator |
static class |
MatchQuery.RewriteMethod |
static class |
MatchQuery.Type |
static class |
MatchQuery.ZeroTermsQuery |
BOOST_DEFAULT
Constructor and Description |
---|
MatchQuery(String field,
String value) |
getBoost, getPostFilter, getPreBooleanFilter, getQueryConfig, getWrappedQuery, hasChildren, isDefaultBoost, setBoost, setPostFilter, setPreBooleanFilter, setQueryConfig
public <T> T accept(QueryVisitor<T> queryVisitor)
accept
in interface Query
accept
in class BaseQueryImpl
public String getAnalyzer()
public Float getCutOffFrequency()
public String getField()
public Float getFuzziness()
public MatchQuery.RewriteMethod getFuzzyRewriteMethod()
public Integer getMaxExpansions()
public String getMinShouldMatch()
public MatchQuery.Operator getOperator()
public Integer getPrefixLength()
public Integer getSlop()
public MatchQuery.Type getType()
public String getValue()
public MatchQuery.ZeroTermsQuery getZeroTermsQuery()
public Boolean isFuzzyTranspositions()
public Boolean isLenient()
public void setAnalyzer(String analyzer)
public void setCutOffFrequency(Float cutOffFrequency)
public void setFuzziness(Float fuzziness)
public void setFuzzyRewriteMethod(MatchQuery.RewriteMethod fuzzyRewriteMethod)
public void setFuzzyTranspositions(Boolean fuzzyTranspositions)
public void setLenient(Boolean lenient)
public void setMaxExpansions(Integer maxExpansions)
public void setMinShouldMatch(String minShouldMatch)
public void setOperator(MatchQuery.Operator operator)
public void setPrefixLength(Integer prefixLength)
public void setSlop(Integer slop)
public void setType(MatchQuery.Type type)
public void setZeroTermsQuery(MatchQuery.ZeroTermsQuery zeroTermsQuery)
public String toString()
toString
in class Object