public final class AutoCreateIndex
extends java.lang.Object
Modifier and Type | Field | Description |
---|---|---|
static Setting<org.elasticsearch.action.support.AutoCreateIndex.AutoCreate> |
AUTO_CREATE_INDEX_SETTING |
Constructor | Description |
---|---|
AutoCreateIndex(Settings settings,
ClusterSettings clusterSettings,
IndexNameExpressionResolver resolver) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
needToCheck() |
Do we really need to check if an index should be auto created?
|
boolean |
shouldAutoCreate(java.lang.String index,
ClusterState state) |
Should the index be auto created?
|
public static final Setting<org.elasticsearch.action.support.AutoCreateIndex.AutoCreate> AUTO_CREATE_INDEX_SETTING
public AutoCreateIndex(Settings settings, ClusterSettings clusterSettings, IndexNameExpressionResolver resolver)
public boolean needToCheck()
public boolean shouldAutoCreate(java.lang.String index, ClusterState state)
IndexNotFoundException
- if the index doesn't exist and shouldn't be auto created