Specify the entity type maps to a document store (like ElasticSearch).
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionSpecify the behavior when bean Delete occurs.Specify to include only some properties in the doc store document.booleanSet to false to disable the "_all" index.The ElasticSearch index name.The ElasticSearch index type.Specify the behavior when bean Insert occurs.Additional mapping that can be defined on the properties.Specify the behavior when bean Insert, Update, Delete events occur.A unique Id used when queuing reindex events.Set the refresh interval for the index.intThe number of replicas this index should use.intThe number of shards this index should use.Specify the behavior when bean Update occurs.
-
Element Details
-
queueId
String queueIdA unique Id used when queuing reindex events.- Default:
- ""
-
indexName
String indexNameThe ElasticSearch index name. If left unspecified the short name of the bean type is used.- Default:
- ""
-
indexType
String indexTypeThe ElasticSearch index type. If left unspecified the short name of the bean type is used.- Default:
- ""
-
enableAll
boolean enableAllSet to false to disable the "_all" index.- Default:
- true
-
refreshInterval
String refreshIntervalSet the refresh interval for the index.- Default:
- ""
-
shards
int shardsThe number of shards this index should use.- Default:
- 0
-
replicas
int replicasThe number of replicas this index should use.- Default:
- 0
-
mapping
DocMapping[] mappingAdditional mapping that can be defined on the properties.- Default:
- {}
-
persist
DocStoreMode persistSpecify the behavior when bean Insert, Update, Delete events occur.- Default:
- DEFAULT
-
insert
DocStoreMode insertSpecify the behavior when bean Insert occurs.- Default:
- DEFAULT
-
update
DocStoreMode updateSpecify the behavior when bean Update occurs.- Default:
- DEFAULT
-
delete
DocStoreMode deleteSpecify the behavior when bean Delete occurs.- Default:
- DEFAULT
-
doc
String docSpecify to include only some properties in the doc store document.If this is left as default then all scalar properties are included, all ManyToOne properties are included with just the nested id property and no OneToMany properties are included.
Note that typically DocStoreEmbedded is used on ManyToOne and OneToMany properties to indicate what part of the nested document should be included.
Example:
@DocStore(doc = "id,name") @Entity public class Customer- Default:
- ""
-