mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 15:17:30 -04:00
Add selector syntax to index expressions (#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.
This commit is contained in:
parent
82b1f2a205
commit
c3839e1f76
73 changed files with 2377 additions and 1073 deletions
|
@ -82,7 +82,7 @@ public class AnalyticsCollectionResolver {
|
|||
// Listing data streams that are matching the analytics collection pattern.
|
||||
List<String> dataStreams = indexNameExpressionResolver.dataStreamNames(
|
||||
state,
|
||||
IndicesOptions.lenientExpandOpen(),
|
||||
IndicesOptions.lenientExpandOpenNoSelectors(),
|
||||
EVENT_DATA_STREAM_INDEX_PATTERN
|
||||
);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue