Enum Class IndexMode

java.lang.Object
java.lang.Enum<IndexMode>
org.elasticsearch.index.IndexMode
All Implemented Interfaces:
Serializable, Comparable<IndexMode>, Constable

public enum IndexMode extends Enum<IndexMode>
"Mode" that controls which behaviors and settings an index supports.
  • Enum Constant Details

    • STANDARD

      public static final IndexMode STANDARD
    • TIME_SERIES

      public static final IndexMode TIME_SERIES
  • Method Details

    • values

      public static IndexMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IndexMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • validateMapping

      public abstract void validateMapping(MappingLookup lookup)
      Validate the mapping for this index.
    • validateAlias

      public abstract void validateAlias(@Nullable String indexRouting, @Nullable String searchRouting)
      Validate aliases targeting this index.
    • completeMappings

      public abstract void completeMappings(MappingParserContext context, Map<String,Object> mapping, RootObjectMapper.Builder builder)
      Validate and/or modify the mappings after after they've been parsed.