问题描述
200的X- 200 X- 20045 X- 20045 X- 200 200 X-我有两个文件夹folder1和folder2来存储索引。我想指定index1(索引名称)存储在folder1中,folder2用于index2。
是否有一些方法可以支持????)
索引已经存储在不同的目录中。默认情况下, index1
存储在 ES_HOME / elasticsearch / nodes / 0 / indices / index1
和 index2
存储在 ES_HOME / elasticsearch / nodes / 0 / indices / index2
中。因此,您可以创建一个符号链接 ES_HOME / elasticsearch / nodes / 0 / indices / index1
指向 folder1
和符号链接 ES_HOME / elasticsearch / nodes / 0 / indices / index2
指向 folder2
。
从0.90.0.Beta1开始,Elasticsearch使用来决定文件应该分配给哪个目录。分销商可以根据每个索引进行配置,因此可以创建一个分销商的插件,它将始终在特定目录中分配索引。
For example.I have two folder,folder1 and folder2, to store the index. I want to specifies index1(index name) to store in folder1, and folder2 for index2.Is there some method to support it???:)
Indices are stored in different directories already. By default, index1
is stored in ES_HOME/elasticsearch/nodes/0/indices/index1
and index2
is stored in ES_HOME/elasticsearch/nodes/0/indices/index2
. So you can create a symbolic link ES_HOME/elasticsearch/nodes/0/indices/index1
pointing to folder1
and a symbolic link ES_HOME/elasticsearch/nodes/0/indices/index2
pointing to folder2
.
Starting with version 0.90.0.Beta1, Elasticsearch uses a store distributor to decide which directory a file should allocated to. Distributors can be configured on per index basis, so it's possible to create a plugin with a distributor that will always allocate index in a particular directory.
这篇关于有没有一些方法可以通过名称在弹性搜索中确定文件夹来存储索引?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!