CompletableFuture> se
}
/**
- * Allows to use the Mustache language to pre-render a search definition.
+ * Runs a search with a search template.
*
* @see Documentation
@@ -1697,13 +1749,14 @@ public CompletableFuture> searchTe
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) SearchTemplateRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.search_template.TDocument", getDeserializer(tDocumentType));
+ "co.elastic.clients:Deserializer:_global.search_template.Response.TDocument",
+ getDeserializer(tDocumentType));
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
}
/**
- * Allows to use the Mustache language to pre-render a search definition.
+ * Runs a search with a search template.
*
* @param fn
* a function that initializes a builder to create the
@@ -1805,7 +1858,7 @@ public CompletableFuture
@SuppressWarnings("unchecked")
JsonEndpoint, UpdateResponse, ErrorResponse> endpoint = (JsonEndpoint, UpdateResponse, ErrorResponse>) UpdateRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.update.TDocument", getDeserializer(tDocumentClass));
+ "co.elastic.clients:Deserializer:_global.update.Response.TDocument", getDeserializer(tDocumentClass));
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
}
@@ -1840,7 +1893,7 @@ public CompletableFuture
@SuppressWarnings("unchecked")
JsonEndpoint, UpdateResponse, ErrorResponse> endpoint = (JsonEndpoint, UpdateResponse, ErrorResponse>) UpdateRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.update.TDocument", getDeserializer(tDocumentType));
+ "co.elastic.clients:Deserializer:_global.update.Response.TDocument", getDeserializer(tDocumentType));
return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
}
@@ -1866,8 +1919,8 @@ public final CompletableFutureDocumentation
@@ -1883,8 +1936,8 @@ public CompletableFuture updateByQuery(UpdateByQueryReque
/**
* Updates documents that match the specified query. If no query is specified,
- * performs an update on every document in the index without changing the
- * source, for example to pick up a mapping change.
+ * performs an update on every document in the data stream or index without
+ * modifying the source, which is useful for picking up mapping changes.
*
* @param fn
* a function that initializes a builder to create the
diff --git a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java
index 9a67f064f..826b81fbf 100644
--- a/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java
+++ b/java-client-serverless/src/main/java/co/elastic/clients/elasticsearch/ElasticsearchClient.java
@@ -95,6 +95,7 @@
import co.elastic.clients.elasticsearch.core.UpdateResponse;
import co.elastic.clients.elasticsearch.enrich.ElasticsearchEnrichClient;
import co.elastic.clients.elasticsearch.eql.ElasticsearchEqlClient;
+import co.elastic.clients.elasticsearch.esql.ElasticsearchEsqlClient;
import co.elastic.clients.elasticsearch.graph.ElasticsearchGraphClient;
import co.elastic.clients.elasticsearch.indices.ElasticsearchIndicesClient;
import co.elastic.clients.elasticsearch.inference.ElasticsearchInferenceClient;
@@ -102,6 +103,7 @@
import co.elastic.clients.elasticsearch.license.ElasticsearchLicenseClient;
import co.elastic.clients.elasticsearch.logstash.ElasticsearchLogstashClient;
import co.elastic.clients.elasticsearch.ml.ElasticsearchMlClient;
+import co.elastic.clients.elasticsearch.query_rule.ElasticsearchQueryRuleClient;
import co.elastic.clients.elasticsearch.query_ruleset.ElasticsearchQueryRulesetClient;
import co.elastic.clients.elasticsearch.search_application.ElasticsearchSearchApplicationClient;
import co.elastic.clients.elasticsearch.security.ElasticsearchSecurityClient;
@@ -178,6 +180,10 @@ public ElasticsearchEqlClient eql() {
return new ElasticsearchEqlClient(this.transport, this.transportOptions);
}
+ public ElasticsearchEsqlClient esql() {
+ return new ElasticsearchEsqlClient(this.transport, this.transportOptions);
+ }
+
public ElasticsearchGraphClient graph() {
return new ElasticsearchGraphClient(this.transport, this.transportOptions);
}
@@ -206,6 +212,10 @@ public ElasticsearchMlClient ml() {
return new ElasticsearchMlClient(this.transport, this.transportOptions);
}
+ public ElasticsearchQueryRuleClient queryRule() {
+ return new ElasticsearchQueryRuleClient(this.transport, this.transportOptions);
+ }
+
public ElasticsearchQueryRulesetClient queryRuleset() {
return new ElasticsearchQueryRulesetClient(this.transport, this.transportOptions);
}
@@ -237,11 +247,11 @@ public ElasticsearchTransformClient transform() {
// ----- Endpoint: bulk
/**
- * Allows to perform multiple index/update/delete operations in a single
- * request.
+ * Performs multiple indexing or delete operations in a single API call. This
+ * reduces overhead and can greatly increase indexing speed.
*
* @see Documentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/docs-bulk.html">Documentation
* on elastic.co
*/
@@ -253,14 +263,14 @@ public BulkResponse bulk(BulkRequest request) throws IOException, ElasticsearchE
}
/**
- * Allows to perform multiple index/update/delete operations in a single
- * request.
+ * Performs multiple indexing or delete operations in a single API call. This
+ * reduces overhead and can greatly increase indexing speed.
*
* @param fn
* a function that initializes a builder to create the
* {@link BulkRequest}
* @see Documentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/docs-bulk.html">Documentation
* on elastic.co
*/
@@ -270,11 +280,11 @@ public final BulkResponse bulk(FunctionDocumentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/docs-bulk.html">Documentation
* on elastic.co
*/
@@ -286,10 +296,10 @@ public BulkResponse bulk() throws IOException, ElasticsearchException {
// ----- Endpoint: clear_scroll
/**
- * Explicitly clears the search context for a scroll.
+ * Clears the search context and results for a scrolling search.
*
* @see Documentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/clear-scroll-api.html">Documentation
* on elastic.co
*/
@@ -301,13 +311,13 @@ public ClearScrollResponse clearScroll(ClearScrollRequest request) throws IOExce
}
/**
- * Explicitly clears the search context for a scroll.
+ * Clears the search context and results for a scrolling search.
*
* @param fn
* a function that initializes a builder to create the
* {@link ClearScrollRequest}
* @see Documentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/clear-scroll-api.html">Documentation
* on elastic.co
*/
@@ -318,10 +328,10 @@ public final ClearScrollResponse clearScroll(
}
/**
- * Explicitly clears the search context for a scroll.
+ * Clears the search context and results for a scrolling search.
*
* @see Documentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/clear-scroll-api.html">Documentation
* on elastic.co
*/
@@ -333,10 +343,10 @@ public ClearScrollResponse clearScroll() throws IOException, ElasticsearchExcept
// ----- Endpoint: close_point_in_time
/**
- * Close a point in time
+ * Closes a point-in-time.
*
* @see Documentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/point-in-time-api.html">Documentation
* on elastic.co
*/
@@ -349,13 +359,13 @@ public ClosePointInTimeResponse closePointInTime(ClosePointInTimeRequest request
}
/**
- * Close a point in time
+ * Closes a point-in-time.
*
* @param fn
* a function that initializes a builder to create the
* {@link ClosePointInTimeRequest}
* @see Documentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/point-in-time-api.html">Documentation
* on elastic.co
*/
@@ -414,10 +424,9 @@ public CountResponse count() throws IOException, ElasticsearchException {
// ----- Endpoint: create
/**
- * Creates a new document in the index.
- *
- * Returns a 409 response when a document with a same ID already exists in the
- * index.
+ * Adds a JSON document to the specified data stream or index and makes it
+ * searchable. If the target is an index and the document already exists, the
+ * request updates the document and increments its version.
*
* @see Documentation
@@ -433,10 +442,9 @@ public CreateResponse create(CreateRequest request)
}
/**
- * Creates a new document in the index.
- *
- * Returns a 409 response when a document with a same ID already exists in the
- * index.
+ * Adds a JSON document to the specified data stream or index and makes it
+ * searchable. If the target is an index and the document already exists, the
+ * request updates the document and increments its version.
*
* @param fn
* a function that initializes a builder to create the
@@ -455,7 +463,7 @@ public final CreateResponse create(
// ----- Endpoint: delete
/**
- * Removes a document from the index.
+ * Removes a JSON document from the specified index.
*
* @see Documentation
@@ -470,7 +478,7 @@ public DeleteResponse delete(DeleteRequest request) throws IOException, Elastics
}
/**
- * Removes a document from the index.
+ * Removes a JSON document from the specified index.
*
* @param fn
* a function that initializes a builder to create the
@@ -488,7 +496,7 @@ public final DeleteResponse delete(FunctionDocumentation
@@ -504,7 +512,7 @@ public DeleteByQueryResponse deleteByQuery(DeleteByQueryRequest request)
}
/**
- * Deletes documents matching the provided query.
+ * Deletes documents that match the specified query.
*
* @param fn
* a function that initializes a builder to create the
@@ -523,7 +531,7 @@ public final DeleteByQueryResponse deleteByQuery(
// ----- Endpoint: delete_script
/**
- * Deletes a script.
+ * Deletes a stored script or search template.
*
* @see Documentation
@@ -538,7 +546,7 @@ public DeleteScriptResponse deleteScript(DeleteScriptRequest request) throws IOE
}
/**
- * Deletes a script.
+ * Deletes a stored script or search template.
*
* @param fn
* a function that initializes a builder to create the
@@ -557,7 +565,7 @@ public final DeleteScriptResponse deleteScript(
// ----- Endpoint: exists
/**
- * Returns information about whether a document exists in an index.
+ * Checks if a document in an index exists.
*
* @see Documentation
@@ -572,7 +580,7 @@ public BooleanResponse exists(ExistsRequest request) throws IOException, Elastic
}
/**
- * Returns information about whether a document exists in an index.
+ * Checks if a document in an index exists.
*
* @param fn
* a function that initializes a builder to create the
@@ -590,7 +598,7 @@ public final BooleanResponse exists(Function_source is stored.
*
* @see Documentation
@@ -605,7 +613,7 @@ public BooleanResponse existsSource(ExistsSourceRequest request) throws IOExcept
}
/**
- * Returns information about whether a document source exists in an index.
+ * Checks if a document's _source
is stored.
*
* @param fn
* a function that initializes a builder to create the
@@ -624,7 +632,8 @@ public final BooleanResponse existsSource(
// ----- Endpoint: explain
/**
- * Returns information about why a specific matches (or doesn't match) a query.
+ * Returns information about why a specific document matches (or doesn’t match)
+ * a query.
*
* @see Documentation
@@ -636,13 +645,14 @@ public ExplainResponse explain(ExplainRequest request, Cl
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) ExplainRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.explain.TDocument", getDeserializer(tDocumentClass));
+ "co.elastic.clients:Deserializer:_global.explain.Response.TDocument", getDeserializer(tDocumentClass));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
/**
- * Returns information about why a specific matches (or doesn't match) a query.
+ * Returns information about why a specific document matches (or doesn’t match)
+ * a query.
*
* @param fn
* a function that initializes a builder to create the
@@ -659,7 +669,8 @@ public final ExplainResponse explain(
}
/**
- * Returns information about why a specific matches (or doesn't match) a query.
+ * Returns information about why a specific document matches (or doesn’t match)
+ * a query.
*
* @see Documentation
@@ -671,13 +682,14 @@ public ExplainResponse explain(ExplainRequest request, Ty
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) ExplainRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.explain.TDocument", getDeserializer(tDocumentType));
+ "co.elastic.clients:Deserializer:_global.explain.Response.TDocument", getDeserializer(tDocumentType));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
/**
- * Returns information about why a specific matches (or doesn't match) a query.
+ * Returns information about why a specific document matches (or doesn’t match)
+ * a query.
*
* @param fn
* a function that initializes a builder to create the
@@ -696,8 +708,11 @@ public final ExplainResponse explain(
// ----- Endpoint: field_caps
/**
- * Returns the information about the capabilities of fields among multiple
- * indices.
+ * The field capabilities API returns the information about the capabilities of
+ * fields among multiple indices. The field capabilities API returns runtime
+ * fields like any other field. For example, a runtime field with a type of
+ * keyword is returned as any other field that belongs to the
+ * keyword
family.
*
* @see Documentation
@@ -712,8 +727,11 @@ public FieldCapsResponse fieldCaps(FieldCapsRequest request) throws IOException,
}
/**
- * Returns the information about the capabilities of fields among multiple
- * indices.
+ * The field capabilities API returns the information about the capabilities of
+ * fields among multiple indices. The field capabilities API returns runtime
+ * fields like any other field. For example, a runtime field with a type of
+ * keyword is returned as any other field that belongs to the
+ * keyword
family.
*
* @param fn
* a function that initializes a builder to create the
@@ -729,8 +747,11 @@ public final FieldCapsResponse fieldCaps(Functionkeyword family.
*
* @see Documentation
@@ -757,7 +778,7 @@ public GetResponse get(GetRequest request, Class, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) GetRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.get.TDocument", getDeserializer(tDocumentClass));
+ "co.elastic.clients:Deserializer:_global.get.Response.TDocument", getDeserializer(tDocumentClass));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
@@ -791,7 +812,7 @@ public GetResponse get(GetRequest request, Type tDocument
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) GetRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.get.TDocument", getDeserializer(tDocumentType));
+ "co.elastic.clients:Deserializer:_global.get.Response.TDocument", getDeserializer(tDocumentType));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
@@ -815,7 +836,7 @@ public final GetResponse get(FunctionDocumentation
@@ -830,7 +851,7 @@ public GetScriptResponse getScript(GetScriptRequest request) throws IOException,
}
/**
- * Returns a script.
+ * Retrieves a stored script or search template.
*
* @param fn
* a function that initializes a builder to create the
@@ -860,7 +881,8 @@ public GetSourceResponse getSource(GetSourceRequest reque
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) GetSourceRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.get_source.TDocument", getDeserializer(tDocumentClass));
+ "co.elastic.clients:Deserializer:_global.get_source.Response.TDocument",
+ getDeserializer(tDocumentClass));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
@@ -895,7 +917,8 @@ public GetSourceResponse getSource(GetSourceRequest reque
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) GetSourceRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.get_source.TDocument", getDeserializer(tDocumentType));
+ "co.elastic.clients:Deserializer:_global.get_source.Response.TDocument",
+ getDeserializer(tDocumentType));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
@@ -920,7 +943,9 @@ public final GetSourceResponse getSource(
// ----- Endpoint: index
/**
- * Creates or updates a document in an index.
+ * Adds a JSON document to the specified data stream or index and makes it
+ * searchable. If the target is an index and the document already exists, the
+ * request updates the document and increments its version.
*
* @see Documentation
@@ -935,7 +960,9 @@ public IndexResponse index(IndexRequest request) throws I
}
/**
- * Creates or updates a document in an index.
+ * Adds a JSON document to the specified data stream or index and makes it
+ * searchable. If the target is an index and the document already exists, the
+ * request updates the document and increments its version.
*
* @param fn
* a function that initializes a builder to create the
@@ -979,7 +1006,7 @@ public MgetResponse mget(MgetRequest request, Class, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) MgetRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.mget.TDocument", getDeserializer(tDocumentClass));
+ "co.elastic.clients:Deserializer:_global.mget.Response.TDocument", getDeserializer(tDocumentClass));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
@@ -1013,7 +1040,7 @@ public MgetResponse mget(MgetRequest request, Type tDocum
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) MgetRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.mget.TDocument", getDeserializer(tDocumentType));
+ "co.elastic.clients:Deserializer:_global.mget.Response.TDocument", getDeserializer(tDocumentType));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
@@ -1049,7 +1076,7 @@ public MsearchResponse msearch(MsearchRequest request, Cl
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) MsearchRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.msearch.TDocument", getDeserializer(tDocumentClass));
+ "co.elastic.clients:Deserializer:_global.msearch.Response.TDocument", getDeserializer(tDocumentClass));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
@@ -1084,7 +1111,7 @@ public MsearchResponse msearch(MsearchRequest request, Ty
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) MsearchRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.msearch.TDocument", getDeserializer(tDocumentType));
+ "co.elastic.clients:Deserializer:_global.msearch.Response.TDocument", getDeserializer(tDocumentType));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
@@ -1109,7 +1136,7 @@ public final MsearchResponse msearch(
// ----- Endpoint: msearch_template
/**
- * Allows to execute several search template operations in one request.
+ * Runs multiple templated searches with a single request.
*
* @see Documentation
@@ -1121,13 +1148,14 @@ public MsearchTemplateResponse msearchTemplate(MsearchTem
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) MsearchTemplateRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.msearch_template.TDocument", getDeserializer(tDocumentClass));
+ "co.elastic.clients:Deserializer:_global.msearch_template.Response.TDocument",
+ getDeserializer(tDocumentClass));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
/**
- * Allows to execute several search template operations in one request.
+ * Runs multiple templated searches with a single request.
*
* @param fn
* a function that initializes a builder to create the
@@ -1144,7 +1172,7 @@ public final MsearchTemplateResponse msearchTemplate(
}
/**
- * Allows to execute several search template operations in one request.
+ * Runs multiple templated searches with a single request.
*
* @see Documentation
@@ -1156,13 +1184,14 @@ public MsearchTemplateResponse msearchTemplate(MsearchTem
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) MsearchTemplateRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.msearch_template.TDocument", getDeserializer(tDocumentType));
+ "co.elastic.clients:Deserializer:_global.msearch_template.Response.TDocument",
+ getDeserializer(tDocumentType));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
/**
- * Allows to execute several search template operations in one request.
+ * Runs multiple templated searches with a single request.
*
* @param fn
* a function that initializes a builder to create the
@@ -1228,10 +1257,17 @@ public MtermvectorsResponse mtermvectors() throws IOException, ElasticsearchExce
// ----- Endpoint: open_point_in_time
/**
- * Open a point in time that can be used in subsequent searches
+ * A search request by default executes against the most recent visible data of
+ * the target indices, which is called point in time. Elasticsearch pit (point
+ * in time) is a lightweight view into the state of the data as it existed when
+ * initiated. In some cases, it’s preferred to perform multiple search requests
+ * using the same point in time. For example, if refreshes happen between
+ * search_after
requests, then the results of those requests might
+ * not be consistent as changes happening between searches are only visible to
+ * the more recent point in time.
*
* @see Documentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/point-in-time-api.html">Documentation
* on elastic.co
*/
@@ -1244,13 +1280,20 @@ public OpenPointInTimeResponse openPointInTime(OpenPointInTimeRequest request)
}
/**
- * Open a point in time that can be used in subsequent searches
+ * A search request by default executes against the most recent visible data of
+ * the target indices, which is called point in time. Elasticsearch pit (point
+ * in time) is a lightweight view into the state of the data as it existed when
+ * initiated. In some cases, it’s preferred to perform multiple search requests
+ * using the same point in time. For example, if refreshes happen between
+ * search_after
requests, then the results of those requests might
+ * not be consistent as changes happening between searches are only visible to
+ * the more recent point in time.
*
* @param fn
* a function that initializes a builder to create the
* {@link OpenPointInTimeRequest}
* @see Documentation
+ * "https://www.elastic.co/guide/en/elasticsearch/reference/999.99/point-in-time-api.html">Documentation
* on elastic.co
*/
@@ -1276,7 +1319,7 @@ public BooleanResponse ping() throws IOException, ElasticsearchException {
// ----- Endpoint: put_script
/**
- * Creates or updates a script.
+ * Creates or updates a stored script or search template.
*
* @see Documentation
@@ -1291,7 +1334,7 @@ public PutScriptResponse putScript(PutScriptRequest request) throws IOException,
}
/**
- * Creates or updates a script.
+ * Creates or updates a stored script or search template.
*
* @param fn
* a function that initializes a builder to create the
@@ -1309,8 +1352,8 @@ public final PutScriptResponse putScript(FunctionDocumentation
@@ -1325,8 +1368,8 @@ public RankEvalResponse rankEval(RankEvalRequest request) throws IOException, El
}
/**
- * Allows to evaluate the quality of ranked search results over a set of typical
- * search queries
+ * Enables you to evaluate the quality of ranked search results over a set of
+ * typical search queries.
*
* @param fn
* a function that initializes a builder to create the
@@ -1381,7 +1424,7 @@ public final ReindexResponse reindex(FunctionDocumentation
@@ -1397,7 +1440,7 @@ public RenderSearchTemplateResponse renderSearchTemplate(RenderSearchTemplateReq
}
/**
- * Allows to use the Mustache language to pre-render a search definition.
+ * Renders a search template as a search request body.
*
* @param fn
* a function that initializes a builder to create the
@@ -1414,7 +1457,7 @@ public final RenderSearchTemplateResponse renderSearchTemplate(
}
/**
- * Allows to use the Mustache language to pre-render a search definition.
+ * Renders a search template as a search request body.
*
* @see Documentation
@@ -1429,7 +1472,7 @@ public RenderSearchTemplateResponse renderSearchTemplate() throws IOException, E
// ----- Endpoint: scripts_painless_execute
/**
- * Allows an arbitrary script to be executed and a result to be returned
+ * Runs a script and returns a result.
*
* @see Documentation
@@ -1442,14 +1485,14 @@ public ScriptsPainlessExecuteResponse scriptsPainlessExecute(
@SuppressWarnings("unchecked")
JsonEndpoint, ErrorResponse> endpoint = (JsonEndpoint, ErrorResponse>) ScriptsPainlessExecuteRequest._ENDPOINT;
endpoint = new EndpointWithResponseMapperAttr<>(endpoint,
- "co.elastic.clients:Deserializer:_global.scripts_painless_execute.TResult",
+ "co.elastic.clients:Deserializer:_global.scripts_painless_execute.Response.TResult",
getDeserializer(tResultClass));
return this.transport.performRequest(request, endpoint, this.transportOptions);
}
/**
- * Allows an arbitrary script to be executed and a result to be returned
+ * Runs a script and returns a result.
*
* @param fn
* a function that initializes a builder to create the
@@ -1466,7 +1509,7 @@ public final ScriptsPainlessExecuteResponse scriptsPainlessEx
}
/**
- * Allows an arbitrary script to be executed and a result to be returned
+ * Runs a script and returns a result.
*
* @see Documentation
@@ -1478,14 +1521,14 @@ public ScriptsPainlessExecuteResponse scriptsPainlessExecute(
@SuppressWarnings("unchecked")
JsonEndpoint