index.store.fs做了什么

con*_*t47 2 elasticsearch

我的印象是使用mmapfs商店,我需要做的就是将index.store.type设置为mmapfs,但是我正在阅读这篇文章并看到作者这样做了

index: 
   store: 
     type: mmapfs 
     fs: 
       mmapfs: 
         enabled: true
Run Code Online (Sandbox Code Playgroud)

所以他基本上做了我做的,然后将index.store.fs.mmapfs.enabled设置为true

我的问题是整个index.store.fs部分做了什么,在哪里可以找到一些文档?

DrT*_*ech 7

您需要的唯一配置是:

index.store.type: mmapfs
Run Code Online (Sandbox Code Playgroud)

我不知道该配置的其余部分取自哪里 - 也许它来自旧版本.

查看配置设置以确保实际支持的最佳位置是代码本身:https: //github.com/elasticsearch/elasticsearch/blob/master/src/main/java/org/elasticsearch/index/store /IndexStoreModule.java#L57

关于mmapfs的主题,值得阅读这篇博客文章:http://blog.thetaphi.de/2012/07/use-lucenes-mmapdirectory-on-64bit.html