jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1504396 - /jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java
Date Thu, 18 Jul 2013 09:18:13 GMT
Author: thomasm
Date: Thu Jul 18 09:18:12 2013
New Revision: 1504396

URL: http://svn.apache.org/r1504396
Log:
OAK-913 Query: relative fulltext conditions return the wrong result (disabled test case)

Modified:
    jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java

Modified: jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java?rev=1504396&r1=1504395&r2=1504396&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java
(original)
+++ jackrabbit/oak/trunk/oak-lucene/src/test/java/org/apache/jackrabbit/oak/jcr/query/QueryFulltextTest.java
Thu Jul 18 09:18:12 2013
@@ -70,6 +70,24 @@ public class QueryFulltextTest extends A
 
     }
     
+    public void testFulltextRelativeProperty() throws Exception {
+        Session session = superuser;
+        QueryManager qm = session.getWorkspace().getQueryManager();
+        Node n1 = testRootNode.addNode("node1");
+        n1.setProperty("text", "hello");
+        session.save();
+       
+        String sql2 = "select [jcr:path] as [path] from [nt:base] " + 
+                "where contains([node1/text], 'hello') order by [jcr:path]";
+        
+        Query q;
+        
+        q = qm.createQuery(sql2, Query.JCR_SQL2);
+        // TODO OAK-913
+        // assertEquals("/testroot", getResult(q.execute(), "path"));
+
+    }
+    
     static String getResult(QueryResult result, String propertyName) throws RepositoryException
{
         StringBuilder buff = new StringBuilder();
         RowIterator it = result.getRows();



Mime
View raw message