Skip to content

Commit 877c638

Browse files
[Backport 8.13] Add force_synthethic_source parameter (#2484)
(cherry picked from commit bda8a6d) Co-authored-by: Quentin Pradet <[email protected]>
1 parent b2c13a0 commit 877c638

File tree

6 files changed

+88
-13
lines changed

6 files changed

+88
-13
lines changed

output/schema/schema.json

+63-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

+1-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/get/GetRequest.ts

+7
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ export interface Request extends RequestBase {
4141
index: IndexName
4242
}
4343
query_parameters: {
44+
/**
45+
* Should this request force synthetic _source?
46+
* Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance.
47+
* Fetches with this enabled will be slower the enabling synthetic source natively in the index.
48+
* @availability stack since=8.4.0 visibility=feature_flag feature_flag=es.index_mode_feature_flag_registered
49+
*/
50+
force_synthetic_source?: boolean
4451
/**
4552
* Specifies the node or shard the operation should be performed on. Random by default.
4653
*/

specification/_global/mget/MultiGetRequest.ts

+7
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ export interface Request extends RequestBase {
3636
index?: IndexName
3737
}
3838
query_parameters: {
39+
/**
40+
* Should this request force synthetic _source?
41+
* Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance.
42+
* Fetches with this enabled will be slower the enabling synthetic source natively in the index.
43+
* @availability stack since=8.4.0 visibility=feature_flag feature_flag=es.index_mode_feature_flag_registered
44+
*/
45+
force_synthetic_source?: boolean
3946
/**
4047
* Specifies the node or shard the operation should be performed on. Random by default.
4148
*/

specification/_global/search/SearchRequest.ts

+7
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,13 @@ export interface Request extends RequestBase {
324324
* @doc_id sort-search-results
325325
*/
326326
sort?: string | string[]
327+
/**
328+
* Should this request force synthetic _source?
329+
* Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance.
330+
* Fetches with this enabled will be slower the enabling synthetic source natively in the index.
331+
* @availability stack since=8.4.0 visibility=feature_flag feature_flag=es.index_mode_feature_flag_registered
332+
*/
333+
force_synthetic_source?: boolean
327334
}
328335
// We should keep this in sync with the multi search request body.
329336
body: {

0 commit comments

Comments
 (0)