Commit 5482bc0
committed
Add selector syntax to index expressions (elastic#118614)
This PR introduces a new syntactical feature to index expression resolution: The selector.
Selectors, denoted with a :: followed by a recognized suffix will allow users to specify which component of
an index abstraction they would like to operate on within an API call. In this case, an index abstraction is a
concrete index, data stream, or alias; Any abstraction that can be resolved to a set of indices/shards. We
define a component of an index abstraction to be some searchable unit of the index abstraction.
(cherry picked from commit c3839e1)
# Conflicts:
# modules/data-streams/src/internalClusterTest/java/org/elasticsearch/datastreams/IngestFailureStoreMetricsIT.java
# server/src/main/java/org/elasticsearch/TransportVersions.java
# server/src/test/java/org/elasticsearch/action/OriginalIndicesTests.java1 parent b398448 commit 5482bc0
File tree
73 files changed
+2372
-1066
lines changed- docs/reference/ml/anomaly-detection/apis
- modules/data-streams
- src
- internalClusterTest/java/org/elasticsearch/datastreams
- javaRestTest/java/org/elasticsearch/datastreams
- main/java/org/elasticsearch/datastreams
- action
- lifecycle
- action
- options/action
- rest
- test/java/org/elasticsearch/datastreams
- lifecycle
- yamlRestTest/resources/rest-api-spec/test/data_stream
- rest-api-spec/src/main/resources/rest-api-spec/api
- server/src
- main/java/org/elasticsearch
- action
- admin
- cluster/snapshots/restore
- indices
- alias
- get
- delete
- get
- mapping/put
- resolve
- rollover
- bulk
- datastreams
- lifecycle
- downsample
- support
- cluster/metadata
- rest/action/admin/indices
- snapshots
- transport
- test/java/org/elasticsearch
- action
- admin/indices
- get
- resolve
- rollover
- bulk
- datastreams
- support
- cluster/metadata
- x-pack/plugin
- core/src
- javaRestTest/java/org/elasticsearch/xpack/core
- main/java/org/elasticsearch/xpack/core
- ilm
- security/authz
- accesscontrol
- permission
- test/java/org/elasticsearch/xpack/core/ilm
- deprecation/src/main/java/org/elasticsearch/xpack/deprecation
- ent-search/src/main/java/org/elasticsearch/xpack/application/analytics
- ml/src/test/java/org/elasticsearch/xpack/ml/datafeed
- security/src
- main/java/org/elasticsearch/xpack/security/authz
- test/java/org/elasticsearch/xpack/security/authz
- src/yamlRestTest/resources/rest-api-spec/test/enrich
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
73 files changed
+2372
-1066
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
557 | 557 | | |
558 | 558 | | |
559 | 559 | | |
560 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
74 | 87 | | |
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 137 | + | |
139 | 138 | | |
140 | 139 | | |
141 | 140 | | |
| |||
341 | 340 | | |
342 | 341 | | |
343 | 342 | | |
344 | | - | |
| 343 | + | |
345 | 344 | | |
346 | 345 | | |
347 | 346 | | |
| |||
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
Lines changed: 0 additions & 221 deletions
This file was deleted.
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
102 | 103 | | |
103 | 104 | | |
104 | 105 | | |
105 | | - | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
| 110 | + | |
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
| |||
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
166 | | - | |
167 | | - | |
| 168 | + | |
| 169 | + | |
168 | 170 | | |
169 | 171 | | |
170 | 172 | | |
171 | 173 | | |
172 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
173 | 179 | | |
174 | 180 | | |
175 | 181 | | |
| |||
0 commit comments