4
我正在運行2.2版本的彈性搜索。我創建了索引並加載了示例文檔。我發現它有一些問題。當我給彈性搜索文檔計數
GET index/type/_count
我得到了正確的答案
{
"count": 9998,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
}
}
但是,當我看到的東西用http://IP:9200/_cat/indices?v
health status index pri rep docs.count docs.deleted store.size pri.store.size
yellow open index 5 1 79978 0 32.1mb 32.1mb
其中docs.count:79978.哪項是錯誤的。
爲什麼我看到docs.count的錯誤值爲。確切的文件數量是9998
你可能有文檔在同一個索引一些其他類型,嘗試GET指數/ _count確認 –
{ 「計數」:9998, 「_shards」:{ 「總」:5, 「成功」:5 , 「失敗」:0 } }我得到相同的9998.當我給GET索引/ _count – Backtrack
你的映射中有嵌套類型的字段嗎? – Val