public static interface ContentItemResultMapper.Enhancer
Modifier and Type | Method and Description |
---|---|
void |
enhance(ContentItemRepresentation response,
com.fasterxml.jackson.databind.JsonNode sourceNode)
Implement this method, if you only need to enhance the response with data from the source part of the Elasticsearch hit document.
|
default void |
enhanceHitNode(ContentItemRepresentation response,
com.fasterxml.jackson.databind.JsonNode hitNode)
Implement this method, if you want to enhance the content item hit with additional data from the full hit document,
not just the source within it (e.g.
|
default void enhanceHitNode(ContentItemRepresentation response, com.fasterxml.jackson.databind.JsonNode hitNode)
response
- the response object already containing the basic case data extracted from the source with can be enriched additionallyhitNode
- the full hit document node as being returned by the Elasticsearch queryvoid enhance(ContentItemRepresentation response, com.fasterxml.jackson.databind.JsonNode sourceNode)
response
- the response object already containing the basic case data extracted from the source with can be enriched additionallysourceNode
- the source part of the Elasticsearch hit document