I have a json file containing the elasticsearch mapping for a type -
let's call it "mapping.json".
Currently we use Map<String, Object> mapping =
mapper.readValue(mappingFileContent, HashMap.class) and then
mapping.get("properties") to get the list of properties etc. We prefer
if there was something like ElasticMapping.class so that we can say
ElasticMapping elasticMapping = mapper.readValue(mappingFileContent,
And then elasticMapping.getProperties().get(0).getType() ....
I see there is MappingMetadata.class but it doesn't look that it is
created with this purpose?