Skip to content

Commit c93f947

Browse files
[Backport 8.x] [OpenAPI] Improve analyze and async search summaries (#3020)
1 parent d100cb6 commit c93f947

File tree

9 files changed

+1008
-110
lines changed

9 files changed

+1008
-110
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 190 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 190 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 568 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 46 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/async_search/delete/AsyncSearchDeleteRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import { RequestBase } from '@_types/Base'
2121
import { Id } from '@_types/common'
2222

2323
/**
24-
* Deletes an async search by identifier.
25-
* If the search is still running, the search request will be cancelled.
24+
* Delete an async search.
25+
* If the asynchronous search is still running, it is cancelled.
2626
* Otherwise, the saved search results are deleted.
2727
* If the Elasticsearch security features are enabled, the deletion of a specific async search is restricted to: the authenticated user that submitted the original search request; users that have the `cancel_task` cluster privilege.
2828
* @rest_spec_name async_search.delete

specification/async_search/get/AsyncSearchGetRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import { Id } from '@_types/common'
2222
import { Duration } from '@_types/Time'
2323

2424
/**
25-
* Retrieves the results of a previously submitted async search request given its identifier.
25+
* Get async search results.
26+
* Retrieve the results of a previously submitted asynchronous search request.
2627
* If the Elasticsearch security features are enabled, access to the results of a specific async search is restricted to the user or API key that submitted it.
2728
* @rest_spec_name async_search.get
2829
* @availability stack since=7.7.0 stability=stable

specification/async_search/status/AsyncSearchStatusRequest.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import { RequestBase } from '@_types/Base'
2121
import { Id } from '@_types/common'
2222

2323
/**
24-
* Get async search status
25-
* Retrieves the status of a previously submitted async search request given its identifier, without retrieving search results.
24+
* Get async search status.
25+
* Retrieve the status of a previously submitted async search request given its identifier, without retrieving search results.
2626
* If the Elasticsearch security features are enabled, use of this API is restricted to the `monitoring_user` role.
2727
* @rest_spec_name async_search.status
2828
* @availability stack since=7.11.0 stability=stable

specification/async_search/submit/AsyncSearchSubmitRequest.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ import { Sort, SortResults } from '@_types/sort'
5353
import { Duration } from '@_types/Time'
5454

5555
/**
56-
* Runs a search request asynchronously.
57-
* When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field, hence partial results become available following the sort criteria that was requested.
58-
* Warning: Async search does not support scroll nor search requests that only include the suggest section.
59-
* By default, Elasticsearch doesn’t allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
56+
* Run an async search.
57+
* When the primary sort of the results is an indexed field, shards get sorted based on minimum and maximum value that they hold for that field. Partial results become available following the sort criteria that was requested.
58+
*
59+
* Warning: Asynchronous search does not support scroll or search requests that include only the suggest section.
60+
*
61+
* By default, Elasticsearch does not allow you to store an async search response larger than 10Mb and an attempt to do this results in an error.
6062
* The maximum allowed size for a stored async search response can be set by changing the `search.max_async_search_response_size` cluster level setting.
6163
* @rest_spec_name async_search.submit
6264
* @availability stack since=7.7.0 stability=stable

specification/indices/analyze/IndicesAnalyzeRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ import { Field, IndexName } from '@_types/common'
2525
import { TextToAnalyze } from './types'
2626

2727
/**
28-
* Performs analysis on a text string and returns the resulting tokens.
28+
* Get tokens from text analysis.
29+
* The analyze API performs [analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis.html) on a text string and returns the resulting tokens.
2930
* @doc_id indices-analyze
3031
* @rest_spec_name indices.analyze
3132
* @availability stack stability=stable

0 commit comments

Comments
 (0)