Skip to content

Support Exclusion Syntax in Elasticsearch Multi-target index lookups #4414

@esatterwhite

Description

@esatterwhite

Is your feature request related to a problem? Please describe.
There are cases when executing searches or aggregations over multiple indexes via glob patterns where we need to
exclude a specific subset of them via a similar, more specific pattern.

Describe the solution you'd like
index names, or patterns that start with the minus (-) symbol should be excluded from the associated search query

Additional context

Example
 http://localhost:7280/api/v1/_elastic/logline.abc123-2024-01.01.*,-logline.abc123-2024-01.01.*.*/_search

https://www.elastic.co/guide/en/elasticsearch/reference/7.14/multi-index.html#multi-index

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions