Annotation Interface Document
Identifies a domain object to be persisted to Elasticsearch.
- Author:
- Rizwan Idrees, Mohsin Husen, Mason Chan, Ivan Greene, Mark Paluch, Peter-Josef Meisch, Sascha Woo
-
Nested Class Summary
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Configuration whether to create an index on repository bootstrapping.Controls how Elasticsearch dynamically adds fields to the document.Deprecated.Deprecated.since 4.2, use theSetting
annotation to configure settingsshort
Deprecated.since 4.2, use theSetting
annotation to configure settingsshort
Deprecated.since 4.2, use theSetting
annotation to configure settingsboolean
Deprecated.since 4.2, use theSetting
annotation to configure settingsConfiguration of version management.Defines if type hints should be written.
-
Element Details
-
indexName
String indexNameName of the Elasticsearch index.- Lowercase only
- Cannot include \, /, *, ?, ", >, <, |, ` ` (space character), ,, #
- Cannot start with -, _, +
- Cannot be . or ..
- Cannot be longer than 255 bytes (note it is bytes, so multi-byte characters will count towards the 255 limit faster)
-
-
-
useServerConfiguration
Deprecated.since 4.2, use theSetting
annotation to configure settingsUse server-side settings when creating the index.- Default:
- false
-
shards
Deprecated.since 4.2, use theSetting
annotation to configure settingsNumber of shards for the indexindexName()
. 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. ComposableAnnotationsUnitTest.documentAnnotationShouldBeComposable:60- Default:
- 1
-
replicas
Deprecated.since 4.2, use theSetting
annotation to configure settingsNumber of replicas for the indexindexName()
. Used for index creation.- Default:
- 1
-
refreshInterval
Deprecated.since 4.2, use theSetting
annotation to configure settingsRefresh interval for the indexindexName()
. Used for index creation.- Default:
- "1s"
-
indexStoreType
Deprecated.since 4.2, use theSetting
annotation to configure settingsIndex storage type for the indexindexName()
. Used for index creation.- Default:
- "fs"
-
createIndex
boolean createIndexConfiguration whether to create an index on repository bootstrapping.- Default:
- true
-
versionType
Document.VersionType versionTypeConfiguration of version management.- Default:
- EXTERNAL
-
writeTypeHint
WriteTypeHint writeTypeHintDefines if type hints should be written. .- Since:
- 4.3
- Default:
- DEFAULT
-
dynamic
Dynamic dynamicControls how Elasticsearch dynamically adds fields to the document.- Since:
- 4.3
- Default:
- INHERIT
-
Setting
annotation to configure settings