Could anyone provide any pointers on grabbing the UID of a given document? I am using Elasticsearch 2.4. I am grabbing data the following way. I can get the GeoPoint values, but have not figured out a way to get the UID. Thanks
for (LeafReaderContext ctx : reader.leaves())
{
final MultiGeoPointValues values = fd.load(ctx).getGeoPointValues();
for( int j = 0; j < ctx.reader().numDocs(); j++ )
{
values.setDocument(j);
for (int k = 0; k < values.count(); k++ )
{
//get the value
org.elasticsearch.common.geo.GeoPoint geoPoint = values.valueAt(k);
}
}
}