Open christopherlakey opened 10 years ago
I think I resolved the issue by replacing:
request.add(new Item(indexName, type.getIndiceName(), String.valueOf(osmId))
.fields("centroid", "lengthKm", "areaKm2", "shape", "tags"));
with
request.add(new Item(indexName, type.getIndiceName(), String.valueOf(osmId)));
And working with fields later in the process
Since elasticsearch 1.x does not return shape fields from the index, only from source, the current EntityDao cannot build a Way using the results of buildMultiGetRequest.
Choices are to fetch the entire source object or to store the geometry as a separate non-analyzed field, perhaps encoded as OGC WKT for compactness.
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-geo-shape-type.html