Closed rbnacharya closed 10 years ago
This is indeed a known limitation of the terms and terms stats facets, see https://github.com/elasticsearch/elasticsearch/issues/1305 for more information. You can improve accuracy by increasing the value of the shard_size
parameter at the cost of more memory usage and network traffic.
My test data and mapping are listed here:
https://gist.github.com/rbnacharya/7acc70b99f758da2162e
Apply the mapping, and add the data...
After that:
I've used a simple facet:
And,
The response is not same for some records [count and total] . As you can match results yourself.
In facet top20, There are less documents, but in facet with name containing top500, there are more document counts.
Am I doing wrong? or is it a elasticsearch bug??