elasticsearch/elasticsearch — pull request #1447 by imotov (2011-11-09 14:09:03+00:00)
Title: Fix reporting of total indexing stats

It looks like there is a typo in the toXContent method that causes /_stats REST action to return primary stats instead of total stats.

On a relevant note, I have upgraded my notebook and now SearchStatsTests are failing almost every time. Fetches are occurring too fast and as a result fetchTimeInMillis() is almost always 0. Sometimes I am even getting 0 in queryTimeInMillis().