org.elasticsearch.index.query
Class FuzzyLikeThisFieldQueryBuilder
java.lang.Object
org.elasticsearch.index.query.BaseQueryBuilder
org.elasticsearch.index.query.FuzzyLikeThisFieldQueryBuilder
- All Implemented Interfaces:
- ToXContent, BoostableQueryBuilder<FuzzyLikeThisFieldQueryBuilder>, QueryBuilder
public class FuzzyLikeThisFieldQueryBuilder
- extends BaseQueryBuilder
- implements BoostableQueryBuilder<FuzzyLikeThisFieldQueryBuilder>
FuzzyLikeThisFieldQueryBuilder
public FuzzyLikeThisFieldQueryBuilder(String name)
- A fuzzy more like this query on the provided field.
- Parameters:
name
- the name of the field
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.