Skip to content

Commit

Permalink
Add force_synthethic_source parameter (#2472)
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin authored Apr 4, 2024
1 parent 345c58f commit bda8a6d
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 13 deletions.
66 changes: 63 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 1 addition & 10 deletions output/schema/validation-errors.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions specification/_global/get/GetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ export interface Request extends RequestBase {
index: IndexName
}
query_parameters: {
/**
* Should this request force synthetic _source?
* Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance.
* Fetches with this enabled will be slower the enabling synthetic source natively in the index.
* @availability stack since=8.4.0 visibility=feature_flag feature_flag=es.index_mode_feature_flag_registered
*/
force_synthetic_source?: boolean
/**
* Specifies the node or shard the operation should be performed on. Random by default.
*/
Expand Down
7 changes: 7 additions & 0 deletions specification/_global/mget/MultiGetRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ export interface Request extends RequestBase {
index?: IndexName
}
query_parameters: {
/**
* Should this request force synthetic _source?
* Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance.
* Fetches with this enabled will be slower the enabling synthetic source natively in the index.
* @availability stack since=8.4.0 visibility=feature_flag feature_flag=es.index_mode_feature_flag_registered
*/
force_synthetic_source?: boolean
/**
* Specifies the node or shard the operation should be performed on. Random by default.
*/
Expand Down
7 changes: 7 additions & 0 deletions specification/_global/search/SearchRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,13 @@ export interface Request extends RequestBase {
* @doc_id sort-search-results
*/
sort?: string | string[]
/**
* Should this request force synthetic _source?
* Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance.
* Fetches with this enabled will be slower the enabling synthetic source natively in the index.
* @availability stack since=8.4.0 visibility=feature_flag feature_flag=es.index_mode_feature_flag_registered
*/
force_synthetic_source?: boolean
}
// We should keep this in sync with the multi search request body.
body: {
Expand Down

0 comments on commit bda8a6d

Please sign in to comment.