Class ElasticsearchResultConverter

java.lang.Object
com.flowable.indexing.utils.ElasticsearchResultConverter

public class ElasticsearchResultConverter extends Object
  • Field Details

  • Method Details

    • convertSearchResult

      public static <T> Page<T> convertSearchResult(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper, int start, int size)
    • convertSearchResultToList

      public static <T> List<T> convertSearchResultToList(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper)
    • extractHits

      public static Optional<com.fasterxml.jackson.databind.node.ArrayNode> extractHits(com.fasterxml.jackson.databind.JsonNode resultNode)
    • extractFirstContentSourceFromHits

      public static Optional<com.fasterxml.jackson.databind.JsonNode> extractFirstContentSourceFromHits(com.fasterxml.jackson.databind.JsonNode resultNode)
    • convertHits

      protected static <T> List<T> convertHits(com.fasterxml.jackson.databind.JsonNode hitsRoot, ElasticsearchResultConverter.ResultMapper<T> resultMapper)
    • getHitsTotalCount

      public static long getHitsTotalCount(com.fasterxml.jackson.databind.JsonNode hitsRoot)