jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r786562 - in /jackrabbit/trunk/jackrabbit-core/src: main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitIndexSearcher.java test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java
Date Fri, 19 Jun 2009 15:53:28 GMT
Author: mreutegg
Date: Fri Jun 19 15:53:27 2009
New Revision: 786562

URL: http://svn.apache.org/viewvc?rev=786562&view=rev
Log:
JCR-2076: JSR 283: QOM and SQL2
- LuceneQueryHits is never used (unreachable)

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitIndexSearcher.java
    jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitIndexSearcher.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitIndexSearcher.java?rev=786562&r1=786561&r2=786562&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitIndexSearcher.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/JackrabbitIndexSearcher.java
Fri Jun 19 15:53:27 2009
@@ -102,7 +102,7 @@
             hits = ((JackrabbitQuery) query).execute(this, session, sort);
         }
         if (hits == null) {
-            if (sort == null) {
+            if (sort.getSort().length == 0) {
                 hits = new LuceneQueryHits(reader, this, query);
             } else {
                 hits = new SortedLuceneQueryHits(

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java?rev=786562&r1=786561&r2=786562&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/query/lucene/IndexingQueueTest.java
Fri Jun 19 15:53:27 2009
@@ -147,7 +147,7 @@
             }
         }
 
-        String stmt = testPath + "//element(*, nt:resource)[jcr:contains(., 'fox')]";
+        String stmt = testPath + "//element(*, nt:resource)[jcr:contains(., 'fox')] order
by @jcr:score descending";
         Query q = qm.createQuery(stmt, Query.XPATH);
         assertEquals(num, q.execute().getNodes().getSize());
     }



Mime
View raw message