Per Shard Statistics

Hi Colin,

The answer is really good! Really appreciate it!

I tried using the dfs_query_then_fetch as the search type and like you and the docs said, the term statistics are now per index.

However, I've noticed that the document count used for the calculations are still per shard. So maxDocs (which I assume is the document count) is the number of documents in the shard rather than in the index. Although maxDocs only differs by 1 between shards, the score is still affected (as my index don't lots of documents).

An example is that two documents with one of the field having the same content, when searching on that field, produces different results because the maxDocs is off by 1 between the two.

So I was wondering is something that I can specify such that the document count is also the index's document count.

Thanks in advance.
Kevin