|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.index.query.xcontent.BaseQueryBuilder
org.elasticsearch.index.query.xcontent.TextQueryBuilder
public class TextQueryBuilder
Text 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 |
TextQueryBuilder.Operator
|
static class |
TextQueryBuilder.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 | |
---|---|
TextQueryBuilder(java.lang.String name,
java.lang.Object text)
Constructs a new text query. |
Method Summary | |
---|---|
TextQueryBuilder |
analyzer(java.lang.String analyzer)
Explicitly set the analyzer to use. |
void |
doXContent(XContentBuilder builder,
ToXContent.Params params)
|
TextQueryBuilder |
fuzziness(java.lang.Object fuzziness)
Sets the minimum similarity used when evaluated to a fuzzy query type. |
TextQueryBuilder |
maxExpansions(int maxExpansions)
When using fuzzy or prefix type query, the number of term expansions to use. |
TextQueryBuilder |
operator(TextQueryBuilder.Operator operator)
Sets the operator to use when using a boolean query. |
TextQueryBuilder |
slop(int slop)
Set the phrase slop if evaluated to a phrase query type. |
TextQueryBuilder |
type(TextQueryBuilder.Type type)
Sets the type of the text query. |
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 |
---|
public TextQueryBuilder(java.lang.String name, java.lang.Object text)
Method Detail |
---|
public TextQueryBuilder type(TextQueryBuilder.Type type)
public TextQueryBuilder operator(TextQueryBuilder.Operator operator)
public TextQueryBuilder analyzer(java.lang.String analyzer)
public TextQueryBuilder slop(int slop)
public TextQueryBuilder fuzziness(java.lang.Object fuzziness)
public TextQueryBuilder maxExpansions(int maxExpansions)
public void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent
in class BaseQueryBuilder
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |