As far as I can see from the docs and the Java API, automatic index
creation can only be disabled globally (per node). For my use case, it
would be extremely useful to specify this either for certain kinds of
indexes (via index template?) or even on a request basis (i.e. with each
Background: we're using an alias to point to one "active" index out of
several. If none of the indexes have the "active" alias, we don't want an
index of that name to be created accidentally when trying to add documents.
We could simply check for alias existence before indexing, but that
obviously invites a race condition.
OTOH, we could disable automatic index creation, but we really need that
for another kind of index. Running several separate ES instances would be a
Is there any existing API call I've missed to solve this problem?