Apache Lucene open-source search software
Fixed bug where Hits.id() returned a Float instead of an int Bug found by Terry Steichen
Peter Carlson0066cc0f7f1b
diff --git a/src/java/org/apache/lucene/search/Hits.java b/src/java/org/apache/lucene/search/Hits.javaindex bb9970b6da5..1588e720e53 100644--- a/src/java/org/apache/lucene/search/Hits.java+++ b/src/java/org/apache/lucene/search/Hits.java@@ -134,7 +134,7 @@ public final class Hits {}/** Returns the id for the nth document in this set. */- public final float id(int n) throws IOException {+ public final int id(int n) throws IOException {return hitDoc(n).id;}