Interface PlatformUserResultMapper.Enhancer

Enclosing interface:
PlatformUserResultMapper

public static interface PlatformUserResultMapper.Enhancer
The interface you can implement when you want to enhance user based search hit data.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    enhance(PlatformUserResponse 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(PlatformUserResponse response, com.fasterxml.jackson.databind.JsonNode hitNode)
    Implement this method, if you want to enhance the user hit with additional data from the full hit document, not just the source within it (e.g.
  • Method Details

    • enhanceHitNode

      default void enhanceHitNode(PlatformUserResponse response, com.fasterxml.jackson.databind.JsonNode hitNode)
      Implement this method, if you want to enhance the user hit with additional data from the full hit document, not just the source within it (e.g. the score).
      Parameters:
      response - the response object already containing the basic case data extracted from the source with can be enriched additionally
      hitNode - the full hit document node as being returned by the Elasticsearch query
    • enhance

      void enhance(PlatformUserResponse 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.
      Parameters:
      response - the response object already containing the basic case data extracted from the source with can be enriched additionally
      sourceNode - the source part of the Elasticsearch hit document