jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1389859 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneIndex.java
Date Tue, 25 Sep 2012 13:29:49 GMT
Author: alexparvulescu
Date: Tue Sep 25 13:29:48 2012
New Revision: 1389859

URL: http://svn.apache.org/viewvc?rev=1389859&view=rev
Log:
OAK-154 Full text search index
 - dedicated jcr:path handling in the lucene filter

Modified:
    jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneIndex.java

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneIndex.java?rev=1389859&r1=1389858&r2=1389859&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneIndex.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneIndex.java
Tue Sep 25 13:29:48 2012
@@ -178,7 +178,12 @@ public class LuceneIndex implements Quer
 
             if (first != null && first.equals(last) && pr.firstIncluding
                     && pr.lastIncluding) {
-                qs.add(new TermQuery(new Term(name, first)));
+                if (org.apache.jackrabbit.oak.query.Query.JCR_PATH.equals(name)) {
+                    qs.add(new TermQuery(newPathTerm(first)));
+                } else {
+                    qs.add(new TermQuery(new Term(name, first)));
+                }
+
             } else {
                 qs.add(TermRangeQuery.newStringRange(name, first, last,
                         pr.firstIncluding, pr.lastIncluding));



Mime
View raw message