ElasticSearch stat size_in_bytes对于相同的索引是不同的

时间:2017-11-16 01:02:52

标签: elasticsearch search indexing lucene elasticsearch-5

在ElasticSearch 5.6中,我创建了相同15k文档的多个索引。具体来说,4都共享相同的映射,设置和内容。

4中有3个的索引大小约为1.0 GB。 4中index_1的大小为52 MB。我对4个索引中的搜索进行了比较,index_1返回的文档数量少于其他文档的相同搜索量。我已经看到每个查询的文档数量减少了1%到80%。

此时,我不相信docs.count或其他store.size_in_bytes上的index_1GET index_1, index_2, index_3, index_4/_stats/docs,store。这让我处于这样一种情况:我正在创建多个索引只是为了得到一个可靠的答案。

为什么其中一个指数与其他指数如此偏离?

自:{ "_shards": { "total": 72, "successful": 72, "failed": 0 }, "_all": { // Removed the primaries as they were identical (no replicas) "total": { "docs": { "count": 60000, "deleted": 0 }, "store": { "size_in_bytes": 3276001895, "throttle_time_in_millis": 0 } } }, "indices": { "index_1": { "total": { "docs": { "count": 15000, "deleted": 0 }, "store": { "size_in_bytes": 54854206, // <-- What is going on here?!? "throttle_time_in_millis": 0 } } }, "index_2": { "total": { "docs": { "count": 15000, "deleted": 0 }, "store": { "size_in_bytes": 1075205322, "throttle_time_in_millis": 0 } } }, "index_3": { "total": { "docs": { "count": 15000, "deleted": 0 }, "store": { "size_in_bytes": 1072993635, "throttle_time_in_millis": 0 } } }, "index_4": { "total": { "docs": { "count": 15000, "deleted": 0 }, "store": { "size_in_bytes": 1072948732, "throttle_time_in_millis": 0 } } } } }

process

0 个答案:

没有答案