Annotation Interface Setting


@Inherited @Retention(RUNTIME) @Target(TYPE) public @interface Setting
Elasticsearch Setting
Author:
Mohsin Husen, Peter-Josef Meisch
  • Element Details

    • settingPath

      String settingPath
      Resource path for a settings configuration
      Default:
      ""
    • useServerConfiguration

      boolean useServerConfiguration
      Use server-side settings when creating the index.
      Default:
      false
    • shards

      short shards
      Number of shards for the index. Used for index creation.
      With version 4.0, the default value is changed from 5 to 1 to reflect the change in the default settings of Elasticsearch which changed to 1 as well in Elasticsearch 7.0.
      Default:
      1
    • replicas

      short replicas
      Number of replicas for the index. Used for index creation.
      Default:
      1
    • refreshInterval

      String refreshInterval
      Refresh interval for the index. Used for index creation.
      Default:
      "1s"
    • indexStoreType

      String indexStoreType
      Index storage type for the index. Used for index creation.
      Default:
      "fs"
    • sortFields

      String[] sortFields
      fields to define an index sorting
      Since:
      4.2
      Default:
      {}
    • sortOrders

      Setting.SortOrder[] sortOrders
      defines the order for sortFields(). If present, it must have the same number of elements
      Since:
      4.2
      Default:
      {}
    • sortModes

      Setting.SortMode[] sortModes
      defines the mode for sortFields(). If present, it must have the same number of elements
      Since:
      4.2
      Default:
      {}
    • sortMissingValues

      Setting.SortMissing[] sortMissingValues
      defines the missing value for sortFields(). If present, it must have the same number of elements
      Since:
      4.2
      Default:
      {}