| Modifier and Type | Optional Element and Description |
|---|---|
DocStoreMode |
delete
Specify the behavior when bean Delete occurs.
|
String |
doc
Specify to include only some properties in the doc store document.
|
boolean |
enableAll
Set to false to disable the "_all" index.
|
String |
indexName
The ElasticSearch index name.
|
String |
indexType
The ElasticSearch index type.
|
DocStoreMode |
insert
Specify the behavior when bean Insert occurs.
|
DocMapping[] |
mapping
Additional mapping that can be defined on the properties.
|
DocStoreMode |
persist
Specify the behavior when bean Insert, Update, Delete events occur.
|
String |
queueId
A unique Id used when queuing reindex events.
|
String |
refreshInterval
Set the refresh interval for the index.
|
int |
replicas
The number of replicas this index should use.
|
int |
shards
The number of shards this index should use.
|
DocStoreMode |
update
Specify the behavior when bean Update occurs.
|
public abstract boolean enableAll
public abstract String refreshInterval
public abstract int shards
public abstract int replicas
public abstract DocMapping[] mapping
public abstract DocStoreMode persist
public abstract DocStoreMode insert
public abstract DocStoreMode update
public abstract DocStoreMode delete
public abstract String doc
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.
// only include the customer id and name
@DocStore(doc = "id,name")
@Entity @Table(name = "o_order")
public class Customer {
Copyright © 2019. All rights reserved.