Apache Lucene open-source search software
LUCENE-1878: cutover TestCartesian to DistanceFieldComparatorSource
Michael McCandlessedf84b6b559d
diff --git a/contrib/spatial/src/test/org/apache/lucene/spatial/tier/TestCartesian.java b/contrib/spatial/src/test/org/apache/lucene/spatial/tier/TestCartesian.javaindex a6ce027e829..7e92ee1c44d 100644--- a/contrib/spatial/src/test/org/apache/lucene/spatial/tier/TestCartesian.java+++ b/contrib/spatial/src/test/org/apache/lucene/spatial/tier/TestCartesian.java@@ -274,7 +274,7 @@ public class TestCartesian extends TestCase{// As the radius filter has performed the distance calculations// already, pass in the filter to reuse the results.//- DistanceSortSource dsort = new DistanceSortSource(dq.distanceFilter);+ DistanceFieldComparatorSource dsort = new DistanceFieldComparatorSource(dq.distanceFilter);Sort sort = new Sort(new SortField("foo", dsort));// Perform the search, using the term query, the serial chain filter, and the