public final class AutoCreateIndex
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static Setting<org.elasticsearch.action.support.AutoCreateIndex.AutoCreate> |
AUTO_CREATE_INDEX_SETTING |
Constructor and Description |
---|
AutoCreateIndex(Settings settings,
ClusterSettings clusterSettings,
IndexNameExpressionResolver resolver) |
Modifier and Type | Method and 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 the index doesn't exist and shouldn't be auto created