Elasticsearch:阻止搜索索引

时间:2016-07-14 05:36:19

标签: elasticsearch

elasticsearch中是否有任何选项可以阻止搜索索引?

Ex: i have 5 index and i block 4th index from search and elasticsearch search only from 1, 2, 3 and 5 index.

是否可以在elasticsearch中阻止搜索索引?

2 个答案:

答案 0 :(得分:1)

您可以为这些特定索引设置名为index.blocks.read的动态可更新设置。来自documentation

  

index.blocks.read

     

设置为true以禁用对索引的读取操作。

答案 1 :(得分:0)

我现在不是默认的内置方式,但有一个安全插件可以轻松实现:https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin