gpt4 book ai didi

elasticsearch - 数据如何物理存储在 Elasticsearch 中?

转载 作者:行者123 更新时间:2023-11-29 02:55:37 24 4
gpt4 key购买 nike

如果我导航到 Elasticsearch 的数据目录:

/节点/0/指数/gb

这里是 tree 命令显示的内容:

├── 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为了存储所有需要的数据:

如我在上面提供的第一个链接中所示,有更多可用的文件类型(术语频率、术语邻近性等)。所有这些文件都是二进制文件,您不能简单地使用文本编辑器查看。您可以使用 Luke tool从 Lucene 工具箱中查看这些文件的内容。

关于elasticsearch - 数据如何物理存储在 Elasticsearch 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37817542/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com