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
If true, the index mapping will be written on repository bootstrapping even when the index already exists.boolean
Configuration whether to create an index on repository bootstrapping.Controls how Elasticsearch dynamically adds fields to the document.boolean
Specifies if the id property should also be stored in the Elasticsearch document source.boolean
Specifies if the version property should also be stored in the Elasticsearch document source.Configuration 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)
-
-
-
createIndex
boolean createIndexConfiguration whether to create an index on repository bootstrapping.- Default:
- true
-
alwaysWriteMapping
boolean alwaysWriteMappingIf true, the index mapping will be written on repository bootstrapping even when the index already exists. This allows for automatically updating the mapping with new properties. Changes on existing properties will lead to an error from the Elasticsearch server.- Default:
- false
-
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
-
storeIdInSource
boolean storeIdInSourceSpecifies if the id property should also be stored in the Elasticsearch document source. Default value is true- Since:
- 5.1
- Default:
- true
-
storeVersionInSource
boolean storeVersionInSourceSpecifies if the version property should also be stored in the Elasticsearch document source. Default value is true.- Since:
- 5.1
- Default:
- true
-