LUCENE-7212: Rename the public method for path sort fields.

This commit is contained in:
Karl Wright 2016-05-18 08:34:54 -04:00
parent 417c37279e
commit 2a810938ba
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}