Package com.flowable.indexing.utils
Class ElasticsearchResultConverter
java.lang.Object
com.flowable.indexing.utils.ElasticsearchResultConverter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
The result mapper is used to map a hit returned by an Elasticsearch query into a response object. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> List<T>
convertHits
(com.fasterxml.jackson.databind.JsonNode hitsRoot, ElasticsearchResultConverter.ResultMapper<T> resultMapper) static <T> Page<T>
convertSearchResult
(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper, int start, int size) static <T> List<T>
convertSearchResultToList
(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper) static Optional<com.fasterxml.jackson.databind.JsonNode>
extractFirstContentSourceFromHits
(com.fasterxml.jackson.databind.JsonNode resultNode) static Optional<com.fasterxml.jackson.databind.node.ArrayNode>
extractHits
(com.fasterxml.jackson.databind.JsonNode resultNode) static long
getHitsTotalCount
(com.fasterxml.jackson.databind.JsonNode hitsRoot)
-
Field Details
-
RESULT_NODE_NAME
- See Also:
-
RESULT_CONTENT_NODE_NAME
- See Also:
-
RESULT_CONTENT_SOURCE_NODE_NAME
- See Also:
-
RESULT_CONTENT_SCORE_NODE_NAME
- See Also:
-
TOTAL_COUNT_NODE_NAME
- See Also:
-
NESTED_RESULT_NODE_NAME
- See Also:
-
-
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)
-