Skip to content

Instantly share code, notes, and snippets.

@belevian
Created September 8, 2014 16:51
Show Gist options
  • Save belevian/46026b88500d264fbc66 to your computer and use it in GitHub Desktop.
Save belevian/46026b88500d264fbc66 to your computer and use it in GitHub Desktop.
query_total is wrong for groups stats at shards level
curl -XDELETE 'http://localhost:9200/_all?pretty'
curl -XPUT 'http://localhost:9200/test/?pretty' -d '
{
"index": {
"number_of_shards": 2,
"number_of_replicas": 0
}
}
'
curl -XGET 'http://localhost:9200/test/_search?pretty' -d '
{
"stats" : ["group1"]
}
'
curl -XGET 'http://localhost:9200/test/_stats/search?groups=_all&level=shards&pretty'
# indices.test.shards.0.search.groups.group1.query_total:5 <==== wrong
# indices.test.shards.1.search.groups.group1.query_total:1 <==== good
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment