T
- the response object type according the index where the search was executedpublic static interface ElasticsearchResultConverter.ResultMapper<T>
Modifier and Type | Method and Description |
---|---|
T |
convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
Converts the given source node (not the full Elasticsearch hit document, just the source object within it).
|
default T |
convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
Implement this method, if you want to enhance or enrich the response with additional data outside of the source object within the hit document
returned by Elasticsearch.
|
default T convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
hitNode
- the full hit document node as being returned by ElasticsearchT convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
sourceNode
- the source object as being returned within the Elasticsearch hit document