public class ElasticsearchResultConverter extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ElasticsearchResultConverter.ResultMapper<T> |
Modifier and Type | Method and Description |
---|---|
protected 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) |
protected static long |
getHitsTotalCount(com.fasterxml.jackson.databind.JsonNode hitsRoot) |
public static <T> Page<T> convertSearchResult(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper, int start, int size)
public static <T> List<T> convertSearchResultToList(com.fasterxml.jackson.databind.JsonNode searchResult, ElasticsearchResultConverter.ResultMapper<T> resultMapper)
protected static <T> List<T> convertHits(com.fasterxml.jackson.databind.JsonNode hitsRoot, ElasticsearchResultConverter.ResultMapper<T> resultMapper)
protected static long getHitsTotalCount(com.fasterxml.jackson.databind.JsonNode hitsRoot)
Copyright © 2019. All rights reserved.