Last active
December 23, 2015 21:49
-
-
Save lindstromhenrik/6699210 to your computer and use it in GitHub Desktop.
List indices (docs/size)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax | |
({ | |
type: "GET", | |
url: "https://server/_status", | |
dataType: 'jsonp' | |
}).done(function(data) { | |
for(indexName in data.indices) | |
{ | |
$('#indices').append('<div><span>' + indexName + '</span> <span>' + data.indices[indexName].docs.num_docs + '</span> <span>' + data.indices[indexName].index.primary_size +'</span></div>'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment