user3736833
user3736833

Reputation: 119

Elasticsearch: Block index from search

Is there any options in elasticsearch to block index from search?

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

is it possible to block index from search in elasticsearch?

Upvotes: 0

Views: 535

Answers (2)

Andrei Stefan
Andrei Stefan

Reputation: 52368

There is dynamically update-able setting called index.blocks.read that you can set for those specific indices. From the documentation:

index.blocks.read

Set to true to disable read operations against the index.

Upvotes: 1

alpert
alpert

Reputation: 4655

I don't now a default built-in way but there is a security plugin that can do that in an easy way: https://github.com/sscarduzio/elasticsearch-readonlyrest-plugin

Upvotes: 0

Related Questions