Skip to content

Commit 558b6ef

Browse files
committed
Add overlay for query object in ML datafeed_config
1 parent 7b0984c commit 558b6ef

File tree

2 files changed

+36
-2
lines changed

2 files changed

+36
-2
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,20 @@ actions:
4040
examples:
4141
resetFeaturesResponseExample1:
4242
$ref: "../../specification/features/reset_features/ResetFeaturesResponseExample1.json"
43-
43+
# Remove and annotate items that are not shown in Bump.sh due to depth limits
44+
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
45+
remove: true
46+
- target: "$.components['schemas']['ml._types:Datafeed'].properties"
47+
description: Re-add a simplified query object
48+
update:
49+
query:
50+
x-abbreviated: true
51+
type: object
52+
description: >
53+
The Elasticsearch query domain-specific language (DSL).
54+
This value corresponds to the query object in an Elasticsearch search POST body.
55+
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
56+
By default, this property has the following value: {"match_all": {"boost": 1}}.
57+
externalDocs:
58+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
59+
description: Query DSL

docs/overlays/elasticsearch-serverless-openapi-overlays.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,22 @@ actions:
2727
- target: "$.paths[*]['get','put','post','delete','options','head','patch','trace']"
2828
description: Add x-beta
2929
update:
30-
x-beta: true
30+
x-beta: true
31+
# Remove and annotate items that are not shown in Bump.sh due to depth limits
32+
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
33+
remove: true
34+
- target: "$.components['schemas']['ml._types:Datafeed'].properties"
35+
description: Re-add a simplified query object
36+
update:
37+
query:
38+
x-abbreviated: true
39+
type: object
40+
description: >
41+
The Elasticsearch query domain-specific language (DSL).
42+
This value corresponds to the query object in an Elasticsearch search POST body.
43+
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
44+
By default, this property has the following value: {"match_all": {"boost": 1}}.
45+
externalDocs:
46+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
47+
description: Query DSL
48+

0 commit comments

Comments
 (0)