Package io.ebean.annotation
Annotation Type DocStore
-
@Target(TYPE) @Retention(RUNTIME) public @interface DocStore
Specify the entity type maps to a document store (like ElasticSearch).
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description DocStoreModedeleteSpecify the behavior when bean Delete occurs.StringdocSpecify to include only some properties in the doc store document.booleanenableAllSet to false to disable the "_all" index.StringindexNameThe ElasticSearch index name.StringindexTypeThe ElasticSearch index type.DocStoreModeinsertSpecify the behavior when bean Insert occurs.DocMapping[]mappingAdditional mapping that can be defined on the properties.DocStoreModepersistSpecify the behavior when bean Insert, Update, Delete events occur.StringqueueIdA unique Id used when queuing reindex events.StringrefreshIntervalSet the refresh interval for the index.intreplicasThe number of replicas this index should use.intshardsThe number of shards this index should use.DocStoreModeupdateSpecify the behavior when bean Update occurs.
-
-
-
-
enableAll
boolean enableAll
Set to false to disable the "_all" index.- Default:
- true
-
-
-
refreshInterval
String refreshInterval
Set the refresh interval for the index.- Default:
- ""
-
-
-
shards
int shards
The number of shards this index should use.- Default:
- 0
-
-
-
replicas
int replicas
The number of replicas this index should use.- Default:
- 0
-
-
-
mapping
DocMapping[] mapping
Additional mapping that can be defined on the properties.- Default:
- {}
-
-
-
persist
DocStoreMode persist
Specify the behavior when bean Insert, Update, Delete events occur.- Default:
- io.ebean.annotation.DocStoreMode.DEFAULT
-
-
-
insert
DocStoreMode insert
Specify the behavior when bean Insert occurs.- Default:
- io.ebean.annotation.DocStoreMode.DEFAULT
-
-
-
update
DocStoreMode update
Specify the behavior when bean Update occurs.- Default:
- io.ebean.annotation.DocStoreMode.DEFAULT
-
-
-
delete
DocStoreMode delete
Specify the behavior when bean Delete occurs.- Default:
- io.ebean.annotation.DocStoreMode.DEFAULT
-
-
-
doc
String doc
Specify 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:
{@code // only include the customer id and name- Default:
- ""
-
-