public class ContentItemJsonMapper extends BaseJsonMapper<ContentItemRepresentation> implements ContentItemResultMapper
ContentItemResultMapper.Enhancer
Modifier and Type | Field and Description |
---|---|
protected List<ContentItemResultMapper.Enhancer> |
resultMapperEnhancers |
Constructor and Description |
---|
ContentItemJsonMapper() |
Modifier and Type | Method and Description |
---|---|
ContentItemRepresentation |
convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
Converts the given source node (not the full Elasticsearch hit document, just the source object within it).
|
ContentItemRepresentation |
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.
|
protected ContentItemRepresentation |
convertWithoutEnhancer(com.fasterxml.jackson.databind.JsonNode jsonNode) |
List<ContentItemResultMapper.Enhancer> |
getResultMapperEnhancers() |
void |
setResultMapperEnhancers(List<ContentItemResultMapper.Enhancer> resultMapperEnhancers) |
createScopeSearchInfo, createTranslationSearchResponses, flattenVariables, transformVariableNode
protected List<ContentItemResultMapper.Enhancer> resultMapperEnhancers
public ContentItemRepresentation convertHit(com.fasterxml.jackson.databind.JsonNode hitNode)
ElasticsearchResultConverter.ResultMapper
convertHit
in interface ElasticsearchResultConverter.ResultMapper<ContentItemRepresentation>
hitNode
- the full hit document node as being returned by Elasticsearchpublic ContentItemRepresentation convert(com.fasterxml.jackson.databind.JsonNode sourceNode)
ElasticsearchResultConverter.ResultMapper
convert
in interface ElasticsearchResultConverter.ResultMapper<ContentItemRepresentation>
sourceNode
- the source object as being returned within the Elasticsearch hit documentprotected ContentItemRepresentation convertWithoutEnhancer(com.fasterxml.jackson.databind.JsonNode jsonNode)
public List<ContentItemResultMapper.Enhancer> getResultMapperEnhancers()
public void setResultMapperEnhancers(List<ContentItemResultMapper.Enhancer> resultMapperEnhancers)