首页 > 解决方案 > ElasticSearch,大小和计数/搜索之间的不一致?

问题描述

我通过 curl POST 在 ES 中创建并索引了一些文档。

当我 GET 'myhost/_cat/indices?v'时,我可以看到我的索引和计数 ~95000 和 store.size ~20mb。

但是当我 GET 'myhost/myindex/_count ' 它返回 0。或者我 GET 'myhost/myindex/_search?q= : '那么它什么也没有。

我使用 SearchGuard,但没有任何错误或权限警告等。

有什么问题?

谢谢。

标签: elasticsearchsearch-guard

解决方案


推荐阅读