For example if I have 10 indices with similar names and they all alias to test-index
, how would I get test-index-1
test-index-2
test-index-3
test-index-4
, test-index-5
, test-index-6
, test-index-7
, test-index-8
, test-index-9
, and test-index-10
to all point to the mapping in use currently when you to a GET /test-index/_mapping
?
Asked
Active
Viewed 67 times
1

Justin Reddick
- 441
- 1
- 5
- 20
-
I initially misunderstood your problem. What is wrong with the response that you get with `GET /test-index/_mapping` exactly? – glenacota Feb 07 '20 at 18:02
1 Answers
0
Not sure what you define as 'unified' mapping - but you can always use wildcards in mapping request. For example : /test-inde*/_mapping would give mapping of all indices in that pattern .

Nirmal
- 1,276
- 8
- 16
-
1This is the way I originally intended the problem. But then I realized he said that he's already using an alias `test-index` for all those indices, and he reported the command that I would expect as correct for getting all the mappings - i.e., `GET /test-index/_mapping`. My feeling is that he'd like to get all mappings merged into a single one associated to the alias, which, AFAIK, is just not possible – glenacota Feb 08 '20 at 07:56