jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1055498 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/join/ConstraintSplitter.java
Date Wed, 05 Jan 2011 16:03:48 GMT
Author: jukka
Date: Wed Jan  5 16:03:48 2011
New Revision: 1055498

URL: http://svn.apache.org/viewvc?rev=1055498&view=rev
Log:
JCR-2843: ConstraintSplitter.getSelectorNames doesn't support FullTextSearch constraints

Patch by Edouard Hue

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/join/ConstraintSplitter.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/join/ConstraintSplitter.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/join/ConstraintSplitter.java?rev=1055498&r1=1055497&r2=1055498&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/join/ConstraintSplitter.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/join/ConstraintSplitter.java
Wed Jan  5 16:03:48 2011
@@ -30,6 +30,7 @@ import javax.jcr.query.qom.Comparison;
 import javax.jcr.query.qom.Constraint;
 import javax.jcr.query.qom.DescendantNode;
 import javax.jcr.query.qom.DynamicOperand;
+import javax.jcr.query.qom.FullTextSearch;
 import javax.jcr.query.qom.FullTextSearchScore;
 import javax.jcr.query.qom.Length;
 import javax.jcr.query.qom.LowerCase;
@@ -173,6 +174,9 @@ class ConstraintSplitter {
         } else if (constraint instanceof DescendantNode) {
             DescendantNode dn = (DescendantNode) constraint;
             return Collections.singleton(dn.getSelectorName());
+        } else if (constraint instanceof FullTextSearch) {
+            FullTextSearch fts = (FullTextSearch) constraint;
+            return Collections.singleton(fts.getSelectorName());
         } else {
             throw new UnsupportedRepositoryOperationException(
                     "Unknown constraint type: " + constraint);



Mime
View raw message