public class FuzzyQueryBuilder extends MultiTermQueryBuilder implements BoostableQueryBuilder<FuzzyQueryBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Constructor and Description |
---|
FuzzyQueryBuilder(String name,
boolean value)
Constructs a new fuzzy query.
|
FuzzyQueryBuilder(String name,
double value)
Constructs a new fuzzy query.
|
FuzzyQueryBuilder(String name,
float value)
Constructs a new fuzzy query.
|
FuzzyQueryBuilder(String name,
int value)
Constructs a new fuzzy query.
|
FuzzyQueryBuilder(String name,
long value)
Constructs a new fuzzy query.
|
FuzzyQueryBuilder(String name,
Object value)
Constructs a new fuzzy query.
|
FuzzyQueryBuilder(String name,
String value)
Constructs a new fuzzy query.
|
Modifier and Type | Method and Description |
---|---|
FuzzyQueryBuilder |
boost(float boost)
Sets the boost for this query.
|
void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
FuzzyQueryBuilder |
fuzziness(Fuzziness fuzziness) |
FuzzyQueryBuilder |
maxExpansions(int maxExpansions) |
FuzzyQueryBuilder |
prefixLength(int prefixLength) |
FuzzyQueryBuilder |
queryName(String queryName)
Sets the query name for the filter that can be used when searching for matched_filters per hit.
|
FuzzyQueryBuilder |
rewrite(String rewrite) |
FuzzyQueryBuilder |
transpositions(boolean transpositions) |
toXContent
buildAsBytes, buildAsBytes, toString
public FuzzyQueryBuilder(String name, Object value)
name
- The name of the fieldvalue
- The value of the textpublic FuzzyQueryBuilder(String name, String value)
name
- The name of the fieldvalue
- The value of the textpublic FuzzyQueryBuilder(String name, int value)
name
- The name of the fieldvalue
- The value of the textpublic FuzzyQueryBuilder(String name, long value)
name
- The name of the fieldvalue
- The value of the textpublic FuzzyQueryBuilder(String name, float value)
name
- The name of the fieldvalue
- The value of the textpublic FuzzyQueryBuilder(String name, double value)
name
- The name of the fieldvalue
- The value of the textpublic FuzzyQueryBuilder(String name, boolean value)
name
- The name of the fieldvalue
- The value of the textpublic FuzzyQueryBuilder boost(float boost)
boost
in interface BoostableQueryBuilder<FuzzyQueryBuilder>
public FuzzyQueryBuilder fuzziness(Fuzziness fuzziness)
public FuzzyQueryBuilder prefixLength(int prefixLength)
public FuzzyQueryBuilder maxExpansions(int maxExpansions)
public FuzzyQueryBuilder transpositions(boolean transpositions)
public FuzzyQueryBuilder rewrite(String rewrite)
public FuzzyQueryBuilder queryName(String queryName)
public void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class QueryBuilder
IOException
Copyright © 2009–2016. All rights reserved.