org.elasticsearch.index.query.xcontent
Class FuzzyQueryBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.xcontent.BaseQueryBuilder
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.MapParams, ToXContent.Params
 
Field Summary
 
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
 
Constructor Summary
FuzzyQueryBuilder(java.lang.String name, java.lang.Object value)
          Constructs a new term query.
 
Method Summary
 FuzzyQueryBuilder boost(float boost)
          Sets the boost for this query.
 void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 FuzzyQueryBuilder minSimilarity(float defaultMinSimilarity)
           
 FuzzyQueryBuilder minSimilarity(java.lang.String defaultMinSimilarity)
           
 FuzzyQueryBuilder prefixLength(int prefixLength)
           
 
Methods inherited from class org.elasticsearch.index.query.xcontent.BaseQueryBuilder
buildAsBytes, buildAsBytes, buildAsUnsafeBytes, buildAsUnsafeBytes, toXContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FuzzyQueryBuilder

public FuzzyQueryBuilder(java.lang.String name,
                         java.lang.Object value)
Constructs a new term query.

Parameters:
name - The name of the field
value - The value of the term
Method Detail

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