From 16e6930ab55199f6f38695e00df8d37f20b3aa5a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 5 Dec 2024 10:59:57 -0800 Subject: [PATCH] [DOCS] Add ES|QL search operation summary (#3208) (#3239) (cherry picked from commit 2d220a5096a4e68ef9cf439e6ce1d6715d881c87) Co-authored-by: Lisa Cawley --- output/openapi/elasticsearch-openapi.json | 6 +++++- output/openapi/elasticsearch-serverless-openapi.json | 6 +++++- output/schema/schema.json | 10 ++++++---- specification/_doc_ids/table.csv | 1 + specification/esql/query/QueryRequest.ts | 4 +++- 5 files changed, 20 insertions(+), 7 deletions(-) diff --git a/output/openapi/elasticsearch-openapi.json b/output/openapi/elasticsearch-openapi.json index c38215df9c..84234ac5ce 100644 --- a/output/openapi/elasticsearch-openapi.json +++ b/output/openapi/elasticsearch-openapi.json @@ -7730,7 +7730,11 @@ "tags": [ "esql" ], - "summary": "Executes an ES|QL request", + "summary": "Run an ES|QL query", + "description": "Get search results for an ES|QL (Elasticsearch query language) query.", + "externalDocs": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/esql.html" + }, "operationId": "esql-query", "parameters": [ { diff --git a/output/openapi/elasticsearch-serverless-openapi.json b/output/openapi/elasticsearch-serverless-openapi.json index 667436ac72..eedd30fd1f 100644 --- a/output/openapi/elasticsearch-serverless-openapi.json +++ b/output/openapi/elasticsearch-serverless-openapi.json @@ -5030,7 +5030,11 @@ "tags": [ "esql" ], - "summary": "Executes an ES|QL request", + "summary": "Run an ES|QL query", + "description": "Get search results for an ES|QL (Elasticsearch query language) query.", + "externalDocs": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/esql.html" + }, "operationId": "esql-query", "parameters": [ { diff --git a/output/schema/schema.json b/output/schema/schema.json index 877b641e89..4b9af2b490 100644 --- a/output/schema/schema.json +++ b/output/schema/schema.json @@ -4803,9 +4803,11 @@ "since": "8.11.0" } }, - "description": "Executes an ES|QL request", + "description": "Run an ES|QL query.\nGet search results for an ES|QL (Elasticsearch query language) query.", "docId": "esql-query", "docUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/esql-rest.html", + "extDocId": "esql", + "extDocUrl": "https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/esql.html", "name": "esql.query", "request": { "name": "Request", @@ -118050,7 +118052,7 @@ "name": "EsqlFormat", "namespace": "esql.query" }, - "specLocation": "esql/query/QueryRequest.ts#L91-L100" + "specLocation": "esql/query/QueryRequest.ts#L93-L102" }, { "kind": "request", @@ -118172,7 +118174,7 @@ } ] }, - "description": "Executes an ES|QL request", + "description": "Run an ES|QL query.\nGet search results for an ES|QL (Elasticsearch query language) query.", "inherits": { "type": { "name": "RequestBase", @@ -118223,7 +118225,7 @@ } } ], - "specLocation": "esql/query/QueryRequest.ts#L26-L89" + "specLocation": "esql/query/QueryRequest.ts#L26-L91" }, { "kind": "response", diff --git a/specification/_doc_ids/table.csv b/specification/_doc_ids/table.csv index efa19ff503..bd36f9b239 100644 --- a/specification/_doc_ids/table.csv +++ b/specification/_doc_ids/table.csv @@ -151,6 +151,7 @@ eql-sequences,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/e eql-missing-events,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql-syntax.html#eql-missing-events eql-syntax,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql-syntax.html eql,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/eql.html +esql,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/esql.html esql-query,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/esql-rest.html esql-query-params,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/esql-rest.html#esql-rest-params esql-returning-localized-results,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/esql-rest.html#esql-locale-param diff --git a/specification/esql/query/QueryRequest.ts b/specification/esql/query/QueryRequest.ts index 44ba0d0953..2c56dc5914 100644 --- a/specification/esql/query/QueryRequest.ts +++ b/specification/esql/query/QueryRequest.ts @@ -24,11 +24,13 @@ import { FieldValue } from '@_types/common' import { QueryContainer } from '@_types/query_dsl/abstractions' /** - * Executes an ES|QL request + * Run an ES|QL query. + * Get search results for an ES|QL (Elasticsearch query language) query. * @rest_spec_name esql.query * @availability stack since=8.11.0 * @availability serverless * @doc_id esql-query + * @ext_doc_id esql */ export interface Request extends RequestBase { query_parameters: {