org.elasticsearch.index.query.xcontent
Class FuzzyQueryBuilder
java.lang.Object
org.elasticsearch.index.query.xcontent.BaseQueryBuilder
org.elasticsearch.index.query.xcontent.FuzzyQueryBuilder
- All Implemented Interfaces:
- ToXContent, QueryBuilder, XContentQueryBuilder
public class FuzzyQueryBuilder
- extends BaseQueryBuilder
A Query that does fuzzy matching for a specific value.
Constructor Summary |
FuzzyQueryBuilder(java.lang.String name,
java.lang.Object value)
Constructs a new term query. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FuzzyQueryBuilder
public FuzzyQueryBuilder(java.lang.String name,
java.lang.Object value)
- Constructs a new term query.
- Parameters:
name
- The name of the fieldvalue
- The value of the term
boost
public FuzzyQueryBuilder boost(float boost)
- Sets the boost for this query. Documents matching this query will (in addition to the normal
weightings) have their score multiplied by the boost provided.
minSimilarity
public FuzzyQueryBuilder minSimilarity(float defaultMinSimilarity)
minSimilarity
public FuzzyQueryBuilder minSimilarity(java.lang.String defaultMinSimilarity)
prefixLength
public FuzzyQueryBuilder prefixLength(int prefixLength)
doXContent
public void doXContent(XContentBuilder builder,
ToXContent.Params params)
throws java.io.IOException
- Specified by:
doXContent
in class BaseQueryBuilder
- Throws:
java.io.IOException