I have a SearchHit
whose source contains several fields, one of which is a field called "shape" which is a geo_shape
.
Using the Java API, is there a good way of parsing this field into a ShapeBuilder
?
ShapeBuilder
has a parse(XContentParser)
method which appears to do what I need but I haven't found an easy way getting the XContentParser
needed from the SearchHit
.