Parse ShapeBuilder from SearchHit

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.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.