Apache Solr open-source search software
LUCENE-7212: Rename the public method for path sort fields.
Karl Wright2a810938bad2
diff --git a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/Geo3DDocValuesField.java b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/Geo3DDocValuesField.javaindex 1003a46a7eb..3fdefb55240 100644--- a/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/Geo3DDocValuesField.java+++ b/lucene/spatial3d/src/java/org/apache/lucene/spatial3d/Geo3DDocValuesField.java@@ -296,7 +296,7 @@ public class Geo3DDocValuesField extends Field {* @return SortField ordering documents by distance* @throws IllegalArgumentException if {@code field} is null or location has invalid coordinates.*/- public static SortField newDistanceSort(final String field, final double[] pathLatitudes, final double[] pathLongitudes, final double pathWidthMeters) {+ public static SortField newPathSort(final String field, final double[] pathLatitudes, final double[] pathLongitudes, final double pathWidthMeters) {final GeoDistanceShape shape = Geo3DUtil.fromPath(pathLatitudes, pathLongitudes, pathWidthMeters);return new Geo3DPointSortField(field, shape);}