Skip to content

Commit 1b312ff

Browse files
committed
Overy the QueryContainer rather than its uses
1 parent 7df70be commit 1b312ff

File tree

1 file changed

+2
-155
lines changed

1 file changed

+2
-155
lines changed

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 2 additions & 155 deletions
Original file line numberDiff line numberDiff line change
@@ -28,57 +28,9 @@ actions:
2828
x-abbreviated: true
2929
# Annotate and abbreviate items that are not shown in Bump.sh due to depth limits
3030
# These are likely long-term and should refer to query language reference etc
31-
- target: "$.paths['/_ml/datafeeds/{datafeed_id}']['put']['requestBody'].content['application/json'].schema.properties.query"
32-
description: "Remove query object from create datafeeds operation"
31+
- target: "$.components['schemas']['_types.query_dsl:QueryContainer'].properties"
32+
description: Remove properties from the QueryContainer object
3333
remove: true
34-
- target: "$.paths['/_ml/datafeeds/{datafeed_id}']['put']['requestBody'].content['application/json'].schema.properties"
35-
description: "Re-add a simplified query object in create datafeeds operation"
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-
- target: "$.components['schemas']['ml._types:Datafeed'].properties.query"
49-
description: Remove query object from anomaly detection datafeed
50-
remove: true
51-
- target: "$.components['schemas']['ml._types:Datafeed'].properties"
52-
description: Re-add a simplified query object in anomaly detection datafeed
53-
update:
54-
query:
55-
x-abbreviated: true
56-
type: object
57-
description: >
58-
The Elasticsearch query domain-specific language (DSL).
59-
This value corresponds to the query object in an Elasticsearch search POST body.
60-
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
61-
By default, this property has the following value: `{"match_all": {"boost": 1}}`.
62-
externalDocs:
63-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
64-
description: Query DSL
65-
- target: "$.components['schemas']['ml._types:DatafeedConfig'].properties.query"
66-
description: Remove query object from anomaly detection datafeed configuration
67-
remove: true
68-
- target: "$.components['schemas']['ml._types:DatafeedConfig'].properties"
69-
description: Re-add a simplified query object in anomaly detection datafeed configuration
70-
update:
71-
query:
72-
x-abbreviated: true
73-
type: object
74-
description: >
75-
The Elasticsearch query domain-specific language (DSL).
76-
This value corresponds to the query object in an Elasticsearch search POST body.
77-
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
78-
By default, this property has the following value: `{"match_all": {"boost": 1}}`.
79-
externalDocs:
80-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
81-
description: Query DSL
8234
- target: "$.components['schemas']['ml._types:CategorizationAnalyzerDefinition'].properties.tokenizer"
8335
description: Remove tokenizer object from ML anomaly detection analysis config
8436
remove: true
@@ -100,111 +52,6 @@ actions:
10052
externalDocs:
10153
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-tokenizers.html
10254
description: Tokenizer reference
103-
- target: "$.components['schemas']['ml._types:DataframeAnalyticsSource'].properties.query"
104-
description: Remove query object from data frame analytics source
105-
remove: true
106-
- target: "$.components['schemas']['ml._types:DataframeAnalyticsSource'].properties"
107-
description: Re-add a simplified query object in data frame analytics source
108-
update:
109-
query:
110-
x-abbreviated: true
111-
type: object
112-
description: >
113-
The Elasticsearch query domain-specific language (DSL).
114-
This value corresponds to the query object in an Elasticsearch search POST body.
115-
All the options that are supported by Elasticsearch can be used, as this object is passed verbatim to Elasticsearch.
116-
By default, this property has the following value: `{"match_all": {}}`.
117-
externalDocs:
118-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
119-
description: Query DSL
120-
- target: "$.components['schemas']['transform._types:Source'].properties.query"
121-
description: Remove query object from transform source
122-
remove: true
123-
- target: "$.components['schemas']['transform._types:Source'].properties"
124-
description: Re-add a simplified query object in transform source
125-
update:
126-
query:
127-
x-abbreviated: true
128-
type: object
129-
description: >
130-
A query clause that retrieves a subset of data from the source index.
131-
externalDocs:
132-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
133-
description: Query DSL
134-
- target: "$.components['requestBodies']['graph.explore'].content['application/json'].schema.properties.query"
135-
description: Remove query object from graph explore operation
136-
remove: true
137-
- target: "$.components['requestBodies']['graph.explore'].content['application/json'].schema.properties"
138-
description: "Re-add simplified query object in graph explore operation"
139-
update:
140-
query:
141-
x-abbreviated: true
142-
type: object
143-
description: >
144-
A seed query that identifies the documents of interest.
145-
Can be any valid Elasticsearch query.
146-
externalDocs:
147-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
148-
description: Query DSL
149-
- target: "$.components['schemas']['graph._types:Hop'].properties.query"
150-
description: Remove query object from graph explore connections schema
151-
remove: true
152-
- target: "$.components['schemas']['graph._types:Hop'].properties"
153-
description: "Re-add simplified query object in graph explore connections schema"
154-
update:
155-
query:
156-
x-abbreviated: true
157-
type: object
158-
description: >
159-
An optional guiding query that constrains the Graph API as it explores connected terms.
160-
For example, you might want to direct the Graph API to ignore older data by specifying a query that identifies recent documents.
161-
externalDocs:
162-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
163-
description: Query DSL
164-
- target: "$.components['schemas']['_global.scripts_painless_execute:PainlessContextSetup'].properties.query"
165-
description: Remove query object from painless script context setup schema
166-
remove: true
167-
- target: "$.components['schemas']['_global.scripts_painless_execute:PainlessContextSetup'].properties"
168-
description: "Re-add simplified query object in painless script context setup schema"
169-
update:
170-
query:
171-
x-abbreviated: true
172-
type: object
173-
description: >
174-
This property applies only when `score` is specified as the script `context`.
175-
Use this property to specify a query for computing a score.
176-
Besides deciding whether or not the document matches, the query clause also calculates a relevance score in the `_score` metadata field.
177-
externalDocs:
178-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
179-
description: Query DSL
180-
- target: "$.components['requestBodies']['async_search.submit'].content['application/json'].schema.properties.query"
181-
description: Remove query object from asynch search request
182-
remove: true
183-
- target: "$.components['requestBodies']['async_search.submit'].content['application/json'].schema.properties"
184-
description: "Re-add simplified query object in asynch search request"
185-
update:
186-
query:
187-
x-abbreviated: true
188-
type: object
189-
description: >
190-
Defines the search definition using the Query DSL.
191-
externalDocs:
192-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
193-
description: Query DSL
194-
- target: "$.components['requestBodies']['search'].content['application/json'].schema.properties.query"
195-
description: Remove query object from search request
196-
remove: true
197-
- target: "$.components['requestBodies']['search'].content['application/json'].schema.properties"
198-
description: "Re-add simplified query object in search request"
199-
update:
200-
query:
201-
x-abbreviated: true
202-
type: object
203-
description: >
204-
Defines the search definition using the Query DSL.
205-
externalDocs:
206-
url: https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl.html
207-
description: Query DSL
20855
# Examples
20956
- target: "$.components['requestBodies']['async_search.submit']"
21057
description: "Add example for asynch search submit request"

0 commit comments

Comments
 (0)