java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<KqlQueryBuilder>
org.elasticsearch.index.query.LeafQueryBuilder<KqlQueryBuilder>
org.elasticsearch.xpack.kql.query.KqlQueryBuilder
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,QueryBuilder,Rewriteable<QueryBuilder>,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldstatic final Stringstatic final org.elasticsearch.xcontent.ParseFieldstatic final org.elasticsearch.xcontent.ParseFieldFields inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryNameFields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancaseInsensitive(boolean caseInsensitive) defaultField(String defaultField) protected booleandoEquals(KqlQueryBuilder other) protected intprotected QueryBuilderprotected org.apache.lucene.search.QuerydoToQuery(SearchExecutionContext context) protected voiddoWriteTo(StreamOutput out) protected voiddoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) static KqlQueryBuilderfromXContent(org.elasticsearch.xcontent.XContentParser parser) timeZone()Methods inherited from class org.elasticsearch.index.query.LeafQueryBuilder
doToQueryMethods inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
addValidationError, boost, boost, boostAndQueryNameToXContent, checkNegativeBoost, declareStandardFields, doCoordinatorRewrite, doInnerHitsRewrite, doRewrite, doSearchRewrite, equals, extractInnerHitBuilders, getMaxNestedDepth, getName, hashCode, parseInnerQueryBuilder, parseTopLevelQuery, parseTopLevelQuery, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, setMaxNestedDepth, throwParsingExceptionOnMultipleFields, toQuery, toQuery, toString, toXContent, writeQueries, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
NAME
- See Also:
-
QUERY_FIELD
public static final org.elasticsearch.xcontent.ParseField QUERY_FIELD -
CASE_INSENSITIVE_FIELD
public static final org.elasticsearch.xcontent.ParseField CASE_INSENSITIVE_FIELD -
TIME_ZONE_FIELD
public static final org.elasticsearch.xcontent.ParseField TIME_ZONE_FIELD -
DEFAULT_FIELD_FIELD
public static final org.elasticsearch.xcontent.ParseField DEFAULT_FIELD_FIELD
-
-
Constructor Details
-
KqlQueryBuilder
-
KqlQueryBuilder
- Throws:
IOException
-
-
Method Details
-
fromXContent
-
getMinimalSupportedVersion
-
queryString
-
caseInsensitive
public boolean caseInsensitive() -
caseInsensitive
-
timeZone
-
timeZone
-
defaultField
-
defaultField
-
doXContent
protected void doXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
doXContentin classAbstractQueryBuilder<KqlQueryBuilder>- Throws:
IOException
-
doIndexMetadataRewrite
- Overrides:
doIndexMetadataRewritein classAbstractQueryBuilder<KqlQueryBuilder>
-
doToQuery
protected org.apache.lucene.search.Query doToQuery(SearchExecutionContext context) throws IOException - Specified by:
doToQueryin classLeafQueryBuilder<KqlQueryBuilder>- Throws:
IOException
-
doWriteTo
- Specified by:
doWriteToin classAbstractQueryBuilder<KqlQueryBuilder>- Throws:
IOException
-
getWriteableName
-
doHashCode
protected int doHashCode()- Specified by:
doHashCodein classAbstractQueryBuilder<KqlQueryBuilder>
-
doEquals
- Specified by:
doEqualsin classAbstractQueryBuilder<KqlQueryBuilder>
-