How to disable automatic index creation


(Jan Fiedler) #1

I tried to find it in the guide but failed: Is there a way to configure ES *
not* to automatically create indexes (e.g. when indexing content of a non
existing index). I need to control index creation and would like to reject
indexing requests that refer to non existing indexes.


(Clinton Gormley) #2

On Fri, 2011-11-04 at 05:01 -0700, Jan Fiedler wrote:

I tried to find it in the guide but failed: Is there a way to
configure ES not to automatically create indexes (e.g. when indexing
content of a non existing index). I need to control index creation and
would like to reject indexing requests that refer to non existing
indexes.

Add this to config/elasticsearch.yml:

action.auto_create_index: 0

clint


(Jan Fiedler) #3

Awesome! Works like a charm. Is there any place (beside source code) where
I could have found this property?


(Shay Banon) #4

I am not sure it is documented..., it should be documented in the index API
at the very least. Can you open an issue?

On Fri, Nov 4, 2011 at 2:45 PM, Jan Fiedler fiedler.jan@gmail.com wrote:

Awesome! Works like a charm. Is there any place (beside source code) where
I could have found this property?


(Jan Fiedler) #5

Created: https://github.com/elasticsearch/elasticsearch/issues/1445

On Tue, Nov 8, 2011 at 4:09 AM, Shay Banon kimchy@gmail.com wrote:

I am not sure it is documented..., it should be documented in the index
API at the very least. Can you open an issue?

On Fri, Nov 4, 2011 at 2:45 PM, Jan Fiedler fiedler.jan@gmail.com wrote:

Awesome! Works like a charm. Is there any place (beside source code)
where I could have found this property?


(system) #6