mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
(mappings) Follow kibana index alias when fetching types
This commit is contained in:
parent
f2c7abecbe
commit
cb83c5fa69
1 changed files with 4 additions and 1 deletions
|
@ -32,7 +32,10 @@ define(function () {
|
|||
// limit the response to just the _source field for each index
|
||||
fields: '_source'
|
||||
}).then(function (resp) {
|
||||
return _.keys(resp[indexName].mappings);
|
||||
// indexName is not sufficient here, if the kibana indexed is aliased we need to use
|
||||
// the root index name as key
|
||||
const index = _.keys(resp)[0];
|
||||
return _.keys(resp[index].mappings);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue