You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by ca...@apache.org on 2002/11/15 17:07:12 UTC
cvs commit: jakarta-lucene/src/java/org/apache/lucene/search Hits.java
carlson 2002/11/15 08:07:12
Modified: src/java/org/apache/lucene/search Hits.java
Log:
Fixed bug where Hits.id() returned a Float instead of an int
Bug found by Terry Steichen
Revision Changes Path
1.3 +1 -1 jakarta-lucene/src/java/org/apache/lucene/search/Hits.java
Index: Hits.java
===================================================================
RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/search/Hits.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- Hits.java 20 Jun 2002 14:32:08 -0000 1.2
+++ Hits.java 15 Nov 2002 16:07:12 -0000 1.3
@@ -134,7 +134,7 @@
}
/** 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;
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>