mirror of https://github.com/apache/lucene.git
LUCENE-7212: Rename the public method for path sort fields.
This commit is contained in:
parent
417c37279e
commit
2a810938ba
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue