You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by ck...@apache.org on 2018/04/16 09:52:02 UTC
svn commit: r1829247 -
/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Author: ckoell
Date: Mon Apr 16 09:52:02 2018
New Revision: 1829247
URL: http://svn.apache.org/viewvc?rev=1829247&view=rev
Log:
Debug Log
Modified:
jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java?rev=1829247&r1=1829246&r2=1829247&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java Mon Apr 16 09:52:02 2018
@@ -656,13 +656,14 @@ public class SearchIndex extends Abstrac
Set<NodeId> removedIds = new HashSet<NodeId>();
Set<NodeId> addedIds = new HashSet<NodeId>();
+ long time = System.currentTimeMillis();
Collection<NodeId> removeCollection = new ArrayList<NodeId>();
while (remove.hasNext()) {
NodeId id = remove.next();
removeCollection.add(id);
removedIds.add(id);
}
-
+
Collection<Document> addCollection = new ArrayList<Document>();
while (add.hasNext()) {
NodeState state = add.next();
@@ -681,6 +682,8 @@ public class SearchIndex extends Abstrac
}
}
}
+ time = System.currentTimeMillis() - time;
+ log.debug("created the removeCollection {} and addCollection {} in {}ms", new Object[] {removeCollection.size(), addCollection.size(), time});
index.update(removeCollection, addCollection);