Class AutoCreateIndex


public final class AutoCreateIndex
extends java.lang.Object
Encapsulates the logic of whether a new index should be automatically created when a write operation is about to happen in a non existing index.
  • Field Summary

    Modifier and Type Field Description
    static Setting<> AUTO_CREATE_INDEX_SETTING  
  • Constructor Summary

    Constructor Description
    AutoCreateIndex​(Settings settings, ClusterSettings clusterSettings, IndexNameExpressionResolver resolver)  
  • Method Summary

    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?

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait