java.lang.Object
org.springframework.data.elasticsearch.support.DefaultStringObjectMap<Settings>
org.springframework.data.elasticsearch.core.index.Settings
All Implemented Interfaces:
Map<String,Object>, StringObjectMap<Settings>

public class Settings extends DefaultStringObjectMap<Settings>
class defining the settings for an index.
Since:
4.2
Author:
Peter-Josef Meisch
  • Constructor Details

    • Settings

      public Settings()
    • Settings

      public Settings(Map<String,Object> map)
  • Method Details

    • parse

      public static Settings parse(String json)
      Creates a Settings object from the given JSON String
      Parameters:
      json - must not be null
      Returns:
      Settings object
    • toString

      public String toString()
      Overrides:
      toString in class DefaultStringObjectMap<Settings>
    • get

      public Object get(Object key)
      Specified by:
      get in interface Map<String,Object>
      Overrides:
      get in class DefaultStringObjectMap<Settings>
    • merge

      public void merge(Settings other)
      Merges some other settings onto this one. Other has higher priority on same keys.
      Parameters:
      other - the other settings. Must not be null
      Since:
      4.4
    • flatten

      public Settings flatten()
      flattens the nested structure (JSON fields index/foo/bar/: value) into a flat structure (index.foo.bar: value)
      Returns:
      Settings with the flattened elements.