Github user mrkarthik commented on a diff in the pull request: https://github.com/apache/lucene-solr/pull/323#discussion_r173832038 --- Diff: solr/core/src/java/org/apache/solr/schema/LatLonPointSpatialField.java --- @@ -75,8 +77,16 @@ protected SpatialStrategy newSpatialStrategy(String fieldName) { return new LatLonPointSpatialStrategy(ctx, fieldName, schemaField.indexed(), schemaField.hasDocValues()); } - public String geoValueToStringValue(long value) { - return new String(decodeLatitudeCeil(value) + "," + decodeLongitudeCeil(value)); + /** + * Converts to "lat, lon" + * @param value Non-null; stored location field data + * @return Non-null; "lat, lon" with 6 decimal point precision + */ + public static String decodeDocValueToString(long value) { + double latitudeDecoded = BigDecimal.valueOf(decodeLatitude((int) (value >> 32))).setScale(6, HALF_UP).doubleValue(); --- End diff -- HALF_UP is only for ceil, I will remove the rounding.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org