jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thom...@apache.org
Subject svn commit: r1163651 - in /jackrabbit/sandbox/microkernel/src: main/java/org/apache/jackrabbit/mk/index/Indexer.java test/java/org/apache/jackrabbit/mk/index/PrefixIndexTest.java
Date Wed, 31 Aug 2011 14:50:05 GMT
Author: thomasm
Date: Wed Aug 31 14:50:05 2011
New Revision: 1163651

URL: http://svn.apache.org/viewvc?rev=1163651&view=rev
Log:
Index mechanism (WIP)

Modified:
    jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java
    jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PrefixIndexTest.java

Modified: jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java?rev=1163651&r1=1163650&r2=1163651&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java
(original)
+++ jackrabbit/sandbox/microkernel/src/main/java/org/apache/jackrabbit/mk/index/Indexer.java
Wed Aug 31 14:50:05 2011
@@ -339,7 +339,7 @@ public class Indexer {
         JsopTokenizer t = new JsopTokenizer(node);
         NodeMap map = new NodeMap();
         t.read('{');
-        NodeImpl n = NodeImpl.parse(map, t, 0, path);
+        NodeImpl n = NodeImpl.parse(map, t, 0, nodeName);
         if (n.hasProperty(property)) {
             for (Index index : indexes) {
                 index.remove(n);

Modified: jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PrefixIndexTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PrefixIndexTest.java?rev=1163651&r1=1163650&r2=1163651&view=diff
==============================================================================
--- jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PrefixIndexTest.java
(original)
+++ jackrabbit/sandbox/microkernel/src/test/java/org/apache/jackrabbit/mk/index/PrefixIndexTest.java
Wed Aug 31 14:50:05 2011
@@ -49,6 +49,12 @@ public class PrefixIndexTest extends Tes
         assertEquals("/test/blob", getPathList(index, "d:1", head));
         assertEquals("/test2/blob2", getPathList(index, "d:2", head));
 
+        head = mk.commit("/", "^\"test2/blob2\" : null", head, null);
+        assertEquals("", getPathList(index, "d:2", head));
+
+        head = mk.commit("/", "^\"test2/blob2\" : \"d:2\" ", head, null);
+        assertEquals("/test2/blob2", getPathList(index, "d:2", head));
+
         head = mk.commit("/", "+\"test3\" : {\"blob3\":\"d:1\"}", head, null);
         head = mk.commit("/", "+\"test4\" : {\"blob4\":\"d:2\"}", head, null);
 



Mime
View raw message