Class AutoCreateIndex


public final class AutoCreateIndex extends 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 Details


      public static final Setting<> AUTO_CREATE_INDEX_SETTING
  • Constructor Details

  • Method Details

    • shouldAutoCreate

      public boolean shouldAutoCreate(String index, ClusterState state)
      Should the index be auto created?
      IndexNotFoundException - if the index doesn't exist and shouldn't be auto created