Interface ElasticsearchResultConverter.ResultMapper<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method 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.
    • Method Detail

      • convertHit

        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.
        Parameters:
        hitNode - the full hit document node as being returned by Elasticsearch
        Returns:
        the response object with the mapped / extracted data from the hit
      • convert

        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).
        Parameters:
        sourceNode - the source object as being returned within the Elasticsearch hit document
        Returns:
        the converted response object