How data is stored physically in elastic search?

后端 未结 1 869
轮回少年
轮回少年 2021-01-20 02:19

If I navigate to Data directory of elastic search :

/nodes/0/indices/gb

Here what tree command shows :

├── 0
│   ├── index
│   │   ├── segments_         


        
相关标签:
1条回答
  • 2021-01-20 02:59

    All those files contain data and each contains a specific type of data (inverted index, field data, document values, etc). The files in the index sub-folder are files created by Lucene in order to store all the needed data:

    • cfe and cfs files are compound files
    • liv files are live document files
    • si files are segment info files
    • ...

    There are many more file types available (term frequency, term proximity, etc) as can be seen in the first link I gave above. All those files are binary files that you cannot simply view with a text editor. You can use the Luke tool from the Lucene Toolbox in order to view the content of those files.

    0 讨论(0)
提交回复
热议问题