org.elasticsearch.index.query
Class FuzzyLikeThisFieldQueryBuilder

java.lang.Object
  extended by org.elasticsearch.index.query.BaseQueryBuilder
      extended by org.elasticsearch.index.query.FuzzyLikeThisFieldQueryBuilder
All Implemented Interfaces:
ToXContent, BoostableQueryBuilder<FuzzyLikeThisFieldQueryBuilder>, QueryBuilder

public class FuzzyLikeThisFieldQueryBuilder
extends BaseQueryBuilder
implements BoostableQueryBuilder<FuzzyLikeThisFieldQueryBuilder>


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
FuzzyLikeThisFieldQueryBuilder(String name)
          A fuzzy more like this query on the provided field.
 
Method Summary
 FuzzyLikeThisFieldQueryBuilder analyzer(String analyzer)
          The analyzer that will be used to analyze the text.
 FuzzyLikeThisFieldQueryBuilder boost(float boost)
          Sets the boost for this query.
protected  void doXContent(XContentBuilder builder, ToXContent.Params params)
           
 FuzzyLikeThisFieldQueryBuilder ignoreTF(boolean ignoreTF)
           
 FuzzyLikeThisFieldQueryBuilder likeText(String likeText)
          The text to use in order to find documents that are "like" this.
 FuzzyLikeThisFieldQueryBuilder maxQueryTerms(int maxQueryTerms)
           
 FuzzyLikeThisFieldQueryBuilder minSimilarity(float minSimilarity)
           
 FuzzyLikeThisFieldQueryBuilder prefixLength(int prefixLength)
           
 
Methods inherited from class org.elasticsearch.index.query.BaseQueryBuilder
buildAsBytes, buildAsBytes, toString, toXContent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FuzzyLikeThisFieldQueryBuilder

public FuzzyLikeThisFieldQueryBuilder(String name)
A fuzzy more like this query on the provided field.

Parameters:
name - the name of the field
Method Detail

likeText

public FuzzyLikeThisFieldQueryBuilder likeText(String likeText)
The text to use in order to find documents that are "like" this.


minSimilarity

public FuzzyLikeThisFieldQueryBuilder minSimilarity(float minSimilarity)

prefixLength

public FuzzyLikeThisFieldQueryBuilder prefixLength(int prefixLength)

maxQueryTerms

public FuzzyLikeThisFieldQueryBuilder maxQueryTerms(int maxQueryTerms)

ignoreTF

public FuzzyLikeThisFieldQueryBuilder ignoreTF(boolean ignoreTF)

analyzer

public FuzzyLikeThisFieldQueryBuilder analyzer(String analyzer)
The analyzer that will be used to analyze the text. Defaults to the analyzer associated with the field.


boost

public FuzzyLikeThisFieldQueryBuilder boost(float boost)
Description copied from interface: BoostableQueryBuilder
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.

Specified by:
boost in interface BoostableQueryBuilder<FuzzyLikeThisFieldQueryBuilder>

doXContent

protected void doXContent(XContentBuilder builder,
                          ToXContent.Params params)
                   throws IOException
Specified by:
doXContent in class BaseQueryBuilder
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.