diff --git a/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java b/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java index b7859d04500..90a80b69f0f 100644 --- a/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java +++ b/lucene/sandbox/src/java/org/apache/lucene/document/FloatPointNearestNeighbor.java @@ -194,7 +194,7 @@ public class FloatPointNearestNeighbor { } /** Holds one hit from {@link FloatPointNearestNeighbor#nearest} */ - public static class NearestHit { + static class NearestHit { public int docID; public double distanceSquared; @@ -204,7 +204,7 @@ public class FloatPointNearestNeighbor { } } - public static NearestHit[] nearest(List readers, List liveDocs, List docBases, final int topN, float[] origin) throws IOException { + private static NearestHit[] nearest(List readers, List liveDocs, List docBases, final int topN, float[] origin) throws IOException { // System.out.println("NEAREST: readers=" + readers + " liveDocs=" + liveDocs + " origin: " + Arrays.toString(origin));