mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#589 - ElasticSearch - Improve update notification when not mapped but has nested invalidation
This commit is contained in:
1 parent
2d93d592c1
commit
3c63b79324
2 files changed
+12
-6
No files matched your search
+8
-1
@@ -72,7 +72,7 @@ public abstract class DocStoreBeanBaseAdapter<T> implements DocStoreBeanAdapter<
|
||||
/**
|
||||
* Behavior on update.
|
||||
*/
|
||||
protected final DocStoreMode update;
|
||||
protected DocStoreMode update;
|
||||
|
||||
/**
|
||||
* Behavior on delete.
|
||||
@@ -190,6 +190,13 @@ public abstract class DocStoreBeanBaseAdapter<T> implements DocStoreBeanAdapter<
|
||||
@Override
|
||||
public void registerInvalidationPath(String queueId, String path, Set<String> properties) {
|
||||
|
||||
if (!mapped) {
|
||||
if (update == DocStoreMode.IGNORE) {
|
||||
// bean type not mapped but is included as nested document
|
||||
// in a doc store index so we need to update
|
||||
update = DocStoreMode.UPDATE;
|
||||
}
|
||||
}
|
||||
embeddedInvalidation.add(getEmbeddedInvalidation(queueId, path, properties));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user