Annotation Interface Setting
Elasticsearch Setting
- Author:
- Mohsin Husen, Peter-Josef Meisch
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
static enum
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionIndex storage type for the index.Refresh interval for the index.short
Number of replicas for the index.Resource path for a settings configurationshort
Number of shards for the index.String[]
fields to define an index sortingdefines the missing value forsortFields()
.defines the mode forsortFields()
.defines the order forsortFields()
.boolean
Use server-side settings when creating the index.
-
Element Details
-
settingPath
String settingPathResource path for a settings configuration- Default:
- ""
-
useServerConfiguration
boolean useServerConfigurationUse server-side settings when creating the index.- Default:
- false
-
shards
short shardsNumber 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 replicasNumber of replicas for the index. Used for index creation.- Default:
- 1
-
refreshInterval
String refreshIntervalRefresh interval for the index. Used for index creation.- Default:
- "1s"
-
indexStoreType
String indexStoreTypeIndex storage type for the index. Used for index creation.- Default:
- "fs"
-
sortFields
String[] sortFieldsfields to define an index sorting- Since:
- 4.2
- Default:
- {}
-
sortOrders
Setting.SortOrder[] sortOrdersdefines the order forsortFields()
. If present, it must have the same number of elements- Since:
- 4.2
- Default:
- {}
-
sortModes
Setting.SortMode[] sortModesdefines the mode forsortFields()
. If present, it must have the same number of elements- Since:
- 4.2
- Default:
- {}
-
sortMissingValues
Setting.SortMissing[] sortMissingValuesdefines the missing value forsortFields()
. If present, it must have the same number of elements- Since:
- 4.2
- Default:
- {}
-