UNPKG

@spalger/kibana

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

19 lines (14 loc) 416 B
var upgrade = require('./upgrade_config'); module.exports = function (server) { var config = server.config(); var client = server.plugins.elasticsearch.client; var options = { index: config.get('kibana.index'), type: 'config', body: { size: 1000, sort: [ { buildNum: { order: 'desc', ignore_unmapped: true } } ] } }; return client.search(options).then(upgrade(server)); };