elasticsearch/elasticsearch — Issue #1516: search missing from stats when using clear and search params
Author: Mpdreamz
Created: 2011-12-01 20:46:51+00:00
State: open

I am getting search stats back on:
http://127.0.0.1.:9200/_stats?pretty=true
but if i clear the flags and add it back manually it'll come up empty:
http://127.0.0.1:9200/_stats?pretty=true&clear=true&search=true

```
{
ok: true,
_shards: {
total: 60,
successful: 30,
failed: 0
},
_all: {
primaries: { },
total: { },
indices: {
80f4f2ae-edb2-423b-b033-f00a73ec2157: {
primaries: { },
total: { }
},
db7bf88d-877c-4e5a-822a-e3fe8f38be1e: {
primaries: { },
total: { }
},
e62a8cfa-37c6-46c3-9a20-b3ad6b25417b: {
primaries: { },
total: { }
},
edc9c9bb-eb23-4949-83b9-fd5a9fdd925c: {
primaries: { },
total: { }
},
nest_test_data_clone: {
primaries: { },
total: { }
},
nest_test_data: {
primaries: { },
total: { }
}
}
}
}
```