jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alexparvule...@apache.org
Subject svn commit: r1393711 - /jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneEditor.java
Date Wed, 03 Oct 2012 19:30:55 GMT
Author: alexparvulescu
Date: Wed Oct  3 19:30:55 2012
New Revision: 1393711

URL: http://svn.apache.org/viewvc?rev=1393711&view=rev
Log:
OAK-340 Basic reindex support in the lucene index

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

Modified: jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneEditor.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneEditor.java?rev=1393711&r1=1393710&r2=1393711&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneEditor.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/lucene/LuceneEditor.java
Wed Oct  3 19:30:55 2012
@@ -104,7 +104,6 @@ class LuceneEditor implements CommitHook
                     after.compareAgainstBaseState(before, diff);
                 } else {
                     // trigger re-indexing
-                    diff.childNodeDeleted("", after);
                     diff.childNodeAdded("", after);
                 }
 
@@ -179,7 +178,7 @@ class LuceneEditor implements CommitHook
 
         private void addSubtree(String path, NodeState state)
                 throws IOException {
-            writer.addDocument(makeDocument(path, state));
+            writer.updateDocument(newPathTerm(path), makeDocument(path, state));
             for (ChildNodeEntry entry : state.getChildNodeEntries()) {
                 if (NodeStateUtils.isHidden(entry.getName())) {
                     continue;



Mime
View raw message