mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
(mapping) Remove indexName var
This commit is contained in:
parent
cb83c5fa69
commit
175c3b6bb1
1 changed files with 2 additions and 3 deletions
|
@ -23,16 +23,15 @@ define(function () {
|
|||
* @return {[type]} [description]
|
||||
*/
|
||||
let getKnownKibanaTypes = _.once(function () {
|
||||
let indexName = kbnIndex;
|
||||
return es.indices.getFieldMapping({
|
||||
// only concerned with types in this kibana index
|
||||
index: indexName,
|
||||
index: kbnIndex,
|
||||
// check all types
|
||||
type: '*',
|
||||
// limit the response to just the _source field for each index
|
||||
fields: '_source'
|
||||
}).then(function (resp) {
|
||||
// indexName is not sufficient here, if the kibana indexed is aliased we need to use
|
||||
// kbnIndex 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