如何在弹性搜索中物理存储数据?
问题描述:
如果我浏览到弹性搜索的数据目录:如何在弹性搜索中物理存储数据?
/节点/ 0 /索引/ GB
这里什么树命令显示:
├── 0 │ ├── index │ │ ├── segments_6 │ │ └── write.lock │ ├── _state │ │ └── state-6.st │ └── translog │ ├── translog-1.ckp │ ├── translog-2.ckp │ ├── translog-3.ckp │ ├── translog-4.ckp │ ├── translog-5.ckp │ ├── translog-5.tlog │ ├── translog-6.ckp │ ├── translog-6.tlog │ ├── translog-7.tlog │ └── translog.ckp ├── 1 │ ├── index │ │ ├── _0_1.liv │ │ ├── _0.cfe │ │ ├── _0.cfs │ │ ├── _0.si │ │ ├── _1.cfe │ │ ├── _1.cfs │ │ ├── _1.si │ │ ├── segments_9 │ │ └── write.lock │ ├── _state │ │ └── state-6.st │ └── translog │ ├── translog-2.ckp │ ├── translog-3.ckp │ ├── translog-4.ckp │ ├── translog-5.ckp │ ├── translog-9.tlog │ └── translog.ckp ├── 2 │ ├── index │ │ ├── _0.cfe │ │ ├── _0.cfs │ │ ├── _0.si │ │ ├── segments_7 │ │ └── write.lock │ ├── _state │ │ └── state-6.st │ └── translog │ ├── translog-2.ckp │ ├── translog-3.ckp │ ├── translog-4.ckp │ ├── translog-5.ckp │ ├── translog-6.ckp │ ├── translog-6.tlog │ ├── translog-7.ckp │ ├── translog-7.tlog │ ├── translog-8.tlog │ └── translog.ckp ├── 3 │ ├── index │ │ ├── _0.cfe │ │ ├── _0.cfs │ │ ├── _0.si │ │ ├── segments_7 │ │ └── write.lock │ ├── _state │ │ └── state-6.st │ └── translog │ ├── translog-2.ckp │ ├── translog-3.ckp │ ├── translog-4.ckp │ ├── translog-5.ckp │ ├── translog-6.ckp │ ├── translog-6.tlog │ ├── translog-7.ckp │ ├── translog-7.tlog │ ├── translog-8.tlog │ └── translog.ckp ├── 4 │ ├── index │ │ ├── _0.cfe │ │ ├── _0.cfs │ │ ├── _0.si │ │ ├── segments_7 │ │ └── write.lock │ ├── _state │ │ └── state-6.st │ └── translog │ ├── translog-2.ckp │ ├── translog-3.ckp │ ├── translog-4.ckp │ ├── translog-5.ckp │ ├── translog-6.ckp │ ├── translog-6.tlog │ ├── translog-7.ckp │ ├── translog-7.tlog │ ├── translog-8.tlog │ └── translog.ckp └── _state └── state-8.st
该文件包含实际数据?我怎么看到这个?
答
所有这些文件都包含数据,每个文件都包含特定类型的数据(倒排索引,字段数据,文档值等)。在index
子文件夹中的文件是files created by Lucene以存储所有需要的数据:
-
cfe
和cfs
文件compound files -
liv
文件live document files -
si
文件segment info files - ..
还有很多fi可用的类型(术语频率,术语接近度等),可以在我上面给出的第一个链接中看到。所有这些文件都是二进制文件,不能简单地使用文本编辑器查看。您可以使用Lucene Toolbox中的Luke tool来查看这些文件的内容。
感谢您的答复Val。我试图使用卢克工具。但它无法在弹性搜索数据目录中打开任何索引。它正在阅读过去的EOF。我试图删除和重新创建索引,仍然给它同样的问题。任何想法如何解决这个问题? – Sohi
也许尝试使用更新的Luke版本:https://github.com/DmitryKey/luke – Val