Skip to content

Commit 5293edd

Browse files
committed
[OpenAPI] Edit search operation summaries
1 parent 88226e1 commit 5293edd

File tree

9 files changed

+33
-10
lines changed

9 files changed

+33
-10
lines changed

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,7 @@ search-validate,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}
531531
search-vector-tile-api,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-vector-tile-api.html
532532
searchable-snapshots-api-mount-snapshot,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/searchable-snapshots-api-mount-snapshot.html
533533
searchable-snapshots-apis,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/searchable-snapshots-apis.html
534+
search-templates,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-template.html
534535
secure-settings,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/secure-settings.html
535536
security-api-authenticate,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-api-authenticate.html
536537
security-api-change-password,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/security-api-change-password.html

specification/_global/clear_scroll/ClearScrollRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ import { RequestBase } from '@_types/Base'
2121
import { ScrollIds } from '@_types/common'
2222

2323
/**
24-
* Clears the search context and results for a scrolling search.
24+
* Clear a scrolling search.
25+
*
26+
* Clear the search context and results for a scrolling search.
2527
* @rest_spec_name clear_scroll
2628
* @availability stack stability=stable
2729
* @availability serverless stability=stable visibility=public

specification/_global/close_point_in_time/ClosePointInTimeRequest.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@ import { RequestBase } from '@_types/Base'
2121
import { Id } from '@_types/common'
2222

2323
/**
24-
* Closes a point-in-time.
24+
* Close a point in time.
25+
*
26+
* A point in time must be opened explicitly before being used in search requests.
27+
* The `keep_alive` parameter tells Elasticsearch how long it should persist.
28+
* A point in time is automatically closed when the `keep_alive` period has elapsed.
29+
* However, keeping points in time has a cost; close them as soon as they are no lwonger required for search requests.
2530
* @rest_spec_name close_point_in_time
2631
* @availability stack since=7.10.0 stability=stable
2732
* @availability serverless stability=stable visibility=public

specification/_global/field_caps/FieldCapabilitiesRequest.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,13 @@ import { RuntimeFields } from '@_types/mapping/RuntimeFields'
2323
import { QueryContainer } from '@_types/query_dsl/abstractions'
2424

2525
/**
26-
* The field capabilities API returns the information about the capabilities of fields among multiple indices.
27-
* The field capabilities API returns runtime fields like any other field. For example, a runtime field with a type
28-
* of keyword is returned as any other field that belongs to the `keyword` family.
26+
* Get the field capabilities.
27+
*
28+
* Get information about the capabilities of fields among multiple indices.
29+
*
30+
* For data streams, the API returns field capabilities among the stream’s backing indices.
31+
* It returns runtime fields like any other field.
32+
* For example, a runtime field with a type of keyword is returned the same as any other field that belongs to the `keyword` family.
2933
* @rest_spec_name field_caps
3034
* @availability stack since=5.4.0 stability=stable
3135
* @availability serverless stability=stable visibility=public

specification/_global/msearch_template/MultiSearchTemplateRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ import { long } from '@_types/Numeric'
2323
import { RequestItem } from './types'
2424

2525
/**
26-
* Runs multiple templated searches with a single request.
26+
* Run multiple templated searches.
2727
* @rest_spec_name msearch_template
2828
* @availability stack since=5.0.0 stability=stable
2929
* @availability serverless stability=stable visibility=public
3030
* @index_privileges read
3131
* @doc_tag search
32+
* @ext_doc_id search-templates
3233
*/
3334
export interface Request extends RequestBase {
3435
path_parts: {

specification/_global/open_point_in_time/OpenPointInTimeRequest.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,17 @@ import { QueryContainer } from '@_types/query_dsl/abstractions'
2323
import { Duration } from '@_types/Time'
2424

2525
/**
26-
* A search request by default executes against the most recent visible data of the target indices,
26+
* Open a point in time.
27+
*
28+
* A search request by default runs against the most recent visible data of the target indices,
2729
* which is called point in time. Elasticsearch pit (point in time) is a lightweight view into the
2830
* state of the data as it existed when initiated. In some cases, it’s preferred to perform multiple
2931
* search requests using the same point in time. For example, if refreshes happen between
3032
* `search_after` requests, then the results of those requests might not be consistent as changes happening
3133
* between searches are only visible to the more recent point in time.
34+
*
35+
* A point in time must be opened explicitly before being used in search requests.
36+
* The `keep_alive` parameter tells Elasticsearch how long it should persist.
3237
* @rest_spec_name open_point_in_time
3338
* @availability stack since=7.10.0 stability=stable
3439
* @availability serverless stability=stable visibility=public

specification/_global/rank_eval/RankEvalRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ import { ExpandWildcards, Indices } from '@_types/common'
2222
import { RankEvalMetric, RankEvalRequestItem } from './types'
2323

2424
/**
25-
* Enables you to evaluate the quality of ranked search results over a set of typical search queries.
25+
* Evaluate ranked search results.
26+
*
27+
* Evaluate the quality of ranked search results over a set of typical search queries.
2628
* @rest_spec_name rank_eval
2729
* @availability stack since=6.2.0 stability=stable
2830
* @availability serverless stability=stable visibility=public

specification/_global/render_search_template/RenderSearchTemplateRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ import { RequestBase } from '@_types/Base'
2323
import { Id } from '@_types/common'
2424

2525
/**
26-
* Renders a search template as a search request body.
26+
* Render a search template.
27+
*
28+
* Render a search template as a search request body.
2729
* @rest_spec_name render_search_template
2830
* @availability stack stability=stable
2931
* @availability serverless stability=stable visibility=public

specification/_global/search_template/SearchTemplateRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ import {
3030
import { Duration } from '@_types/Time'
3131

3232
/**
33-
* Runs a search with a search template.
33+
* Run a search with a search template.
3434
* @rest_spec_name search_template
3535
* @availability stack since=2.0.0 stability=stable
3636
* @availability serverless stability=stable visibility=public
3737
* @doc_tag search
38+
* @ext_doc_id search-teamplate
3839
*/
3940
export interface Request extends RequestBase {
4041
path_parts: {

0 commit comments

Comments
 (0)