如何在弹性搜索中物理存储数据?

时间:2016-06-14 16:31:16

标签: elasticsearch

如果我导航到弹性搜索的数据目录:

/ nodes / 0 / indices / 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

哪个文件包含实际数据?我怎么能看到那个?

1 个答案:

答案 0 :(得分:3)

所有这些文件都包含数据,每个文件都包含特定类型的数据(反向索引,字段数据,文档值等)。 index子文件夹中的文件为files created by Lucene,以便存储所有需要的数据:

我可以在上面给出的第一个链接中看到更多可用的文件类型(术语频率,术语接近度等)。所有这些文件都是二进制文件,您无法使用文本编辑器进行查看。您可以使用Lucene工具箱中的Luke tool来查看这些文件的内容。

相关问题