Class QueryRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.esql.QueryRequest
- All Implemented Interfaces:
JsonpSerializable
Executes an ES|QL request
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryRequest>
Json deserializer forQueryRequest
static final Endpoint<QueryRequest,
BinaryResponse, ErrorResponse> Endpoint "esql.query
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
columnar()
By default, ES|QL returns results as rows.final String
The character to use between values within a CSV row.final Query
filter()
Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on.final String
format()
A short version of the Accept header, e.g.final String
locale()
API name:locale
static QueryRequest
final List<FieldValue>
params()
To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters.final String
query()
Required - The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryRequest
-
_ENDPOINT
Endpoint "esql.query
".
-
-
Method Details
-
of
-
columnar
By default, ES|QL returns results as rows. For example, FROM returns each individual document as one row. For the JSON, YAML, CBOR and smile formats, ES|QL can return the results in a columnar fashion where one row represents all the values of a certain column in the results.API name:
columnar
-
delimiter
The character to use between values within a CSV row. Only valid for the CSV format.API name:
delimiter
-
filter
Specify a Query DSL query in the filter parameter to filter the set of documents that an ES|QL query runs on.API name:
filter
-
format
A short version of the Accept header, e.g. json, yaml.API name:
format
-
locale
API name:locale
-
params
To avoid any attempts of hacking or code injection, extract the values in a separate list of parameters. Use question mark placeholders (?) in the query string for each of the parameters.API name:
params
-
query
Required - The ES|QL query API accepts an ES|QL query string in the query parameter, runs it, and returns the results.API name:
query
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupQueryRequestDeserializer
-