From 25c9e9d4703b73d5b163174090b0c79aeec9a416 Mon Sep 17 00:00:00 2001 From: Peter-Josef Meisch Date: Sun, 26 Dec 2021 13:26:31 +0100 Subject: [PATCH] Adjust documentation. --- .../reference/elasticsearch-entity-callbacks.adoc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/asciidoc/reference/elasticsearch-entity-callbacks.adoc b/src/main/asciidoc/reference/elasticsearch-entity-callbacks.adoc index fda1c1ad8..146f1c3e1 100644 --- a/src/main/asciidoc/reference/elasticsearch-entity-callbacks.adoc +++ b/src/main/asciidoc/reference/elasticsearch-entity-callbacks.adoc @@ -13,7 +13,13 @@ Spring Data Elasticsearch uses the `EntityCallback` API internally for its audit | Reactive/BeforeConvertCallback | `onBeforeConvert(T entity, IndexCoordinates index)` -| Invoked before a domain object is converted to `org.springframework.data.elasticsearch.core.document.Document`. Can return the `entity` or a modified entity which then will be converted. +| Invoked before a domain object is converted to `org.springframework.data.elasticsearch.core.document.Document`. +Can return the `entity` or a modified entity which then will be converted. +| `Ordered.LOWEST_PRECEDENCE` + +| Reactive/AfterLoadCallback +| `onAfterLoad(Document document, Class type, IndexCoordinates indexCoordinates)` +| Invoked after the result from Elasticsearch has been read into a `org.springframework.data.elasticsearch.core.document.Document`. | `Ordered.LOWEST_PRECEDENCE` | Reactive/AfterConvertCallback @@ -32,4 +38,3 @@ Spring Data Elasticsearch uses the `EntityCallback` API internally for its audit | `Ordered.LOWEST_PRECEDENCE` |=== -