Skip to content

Commit 7adb256

Browse files
[Backport 8.x] Add x-model for QueryContainer (#2982)
1 parent e77a343 commit 7adb256

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ info:
44
title: Overlays for changes that apply to both Elasticsearch and Elasticsearch Serverless OpenAPI documents
55
version: 0.0.1
66
actions:
7+
# Add x-model to hide children of schema objects that are defined elsewhere
8+
- target: "$.components['schemas']['_types.query_dsl:QueryContainer']"
9+
description: Add x-model and updated externalDocs for the QueryContainer object
10+
update:
11+
x-model: true
12+
externalDocs:
13+
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
14+
description: Query domain specific language (DSL) reference
715
# Abbreviate and annotate items that are not shown in Bump.sh due to depth limits
816
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
917
description: Remove query object from anomaly detection datafeed
@@ -12,7 +20,7 @@ actions:
1220
description: Re-add a simplified query object in anomaly detection datafeed
1321
update:
1422
query:
15-
x-abbreviated: true
23+
x-model: true
1624
type: object
1725
description: >
1826
The Elasticsearch query domain-specific language (DSL).
@@ -29,7 +37,7 @@ actions:
2937
description: Re-add a simplified tokenizer object in anomaly detection analysis config
3038
update:
3139
tokenizer:
32-
x-abbreviated: true
40+
x-model: true
3341
oneOf:
3442
- type: object
3543
- type: string
@@ -50,7 +58,7 @@ actions:
5058
description: Re-add a simplified query object in data frame analytics source
5159
update:
5260
query:
53-
x-abbreviated: true
61+
x-model: true
5462
type: object
5563
description: >
5664
The Elasticsearch query domain-specific language (DSL).
@@ -67,7 +75,7 @@ actions:
6775
description: Re-add a simplified query object in transform source
6876
update:
6977
query:
70-
x-abbreviated: true
78+
x-model: true
7179
type: object
7280
description: >
7381
A query clause that retrieves a subset of data from the source index.

0 commit comments

Comments
 (0)