|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.index.query.BaseQueryBuilder org.elasticsearch.index.query.MatchQueryBuilder
public class MatchQueryBuilder
Match query is a query that analyzes the text and constructs a query as the result of the analysis. It can construct different queries based on the type provided.
Nested Class Summary | |
---|---|
static class |
MatchQueryBuilder.Operator
|
static class |
MatchQueryBuilder.Type
|
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 | |
---|---|
MatchQueryBuilder(String name,
Object text)
Constructs a new text query. |
Method Summary | |
---|---|
MatchQueryBuilder |
analyzer(String analyzer)
Explicitly set the analyzer to use. |
MatchQueryBuilder |
boost(float boost)
Set the boost to apply to the query. |
void |
doXContent(XContentBuilder builder,
ToXContent.Params params)
|
MatchQueryBuilder |
fuzziness(Object fuzziness)
Sets the minimum similarity used when evaluated to a fuzzy query type. |
MatchQueryBuilder |
fuzzyRewrite(String fuzzyRewrite)
|
MatchQueryBuilder |
maxExpansions(int maxExpansions)
When using fuzzy or prefix type query, the number of term expansions to use. |
MatchQueryBuilder |
minimumShouldMatch(String minimumShouldMatch)
|
MatchQueryBuilder |
operator(MatchQueryBuilder.Operator operator)
Sets the operator to use when using a boolean query. |
MatchQueryBuilder |
prefixLength(int prefixLength)
|
MatchQueryBuilder |
rewrite(String rewrite)
|
MatchQueryBuilder |
setLenient(boolean lenient)
Sets whether format based failures will be ignored. |
MatchQueryBuilder |
slop(int slop)
Set the phrase slop if evaluated to a phrase query type. |
MatchQueryBuilder |
type(MatchQueryBuilder.Type type)
Sets the type of the text query. |
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 |
---|
public MatchQueryBuilder(String name, Object text)
Method Detail |
---|
public MatchQueryBuilder type(MatchQueryBuilder.Type type)
public MatchQueryBuilder operator(MatchQueryBuilder.Operator operator)
public MatchQueryBuilder analyzer(String analyzer)
public MatchQueryBuilder boost(float boost)
boost
in interface BoostableQueryBuilder<MatchQueryBuilder>
public MatchQueryBuilder slop(int slop)
public MatchQueryBuilder fuzziness(Object fuzziness)
public MatchQueryBuilder prefixLength(int prefixLength)
public MatchQueryBuilder maxExpansions(int maxExpansions)
public MatchQueryBuilder minimumShouldMatch(String minimumShouldMatch)
public MatchQueryBuilder rewrite(String rewrite)
public MatchQueryBuilder fuzzyRewrite(String fuzzyRewrite)
public MatchQueryBuilder setLenient(boolean lenient)
public void doXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
doXContent
in class BaseQueryBuilder
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |