jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r350036 - /incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryHits.java
Date Wed, 30 Nov 2005 20:22:19 GMT
Author: mreutegg
Date: Wed Nov 30 12:22:13 2005
New Revision: 350036

URL: http://svn.apache.org/viewcvs?rev=350036&view=rev
Log:
Document id is missing in QueryHits.

Modified:
    incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryHits.java

Modified: incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryHits.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryHits.java?rev=350036&r1=350035&r2=350036&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryHits.java
(original)
+++ incubator/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/core/query/lucene/QueryHits.java
Wed Nov 30 12:22:13 2005
@@ -92,4 +92,17 @@
     public final float score(int n) throws IOException {
       return hits.score(n);
     }
+
+    /**
+     * Returns the document number for the <code>n</code><sup>th</sup>
document
+     * in this QueryHits.
+     *
+     * @param n index.
+     * @return the document number for the <code>n</code><sup>th</sup>
+     *         document.
+     * @throws IOException if an error occurs.
+     */
+    public final int id(int n) throws IOException {
+        return hits.id(n);
+    }
 }



Mime
View raw message