jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1169488 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/SearchIndex.java
Date Sun, 11 Sep 2011 17:46:54 GMT
Author: jukka
Date: Sun Sep 11 17:46:54 2011
New Revision: 1169488

URL: http://svn.apache.org/viewvc?rev=1169488&view=rev
Log:
JCR-3003: Tika configuration may use wrong class loader

Initialize the Tika parser before it is possibly needed during reindexing

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=1169488&r1=1169487&r2=1169488&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
Sun Sep 11 17:46:54 2011
@@ -532,6 +532,9 @@ public class SearchIndex extends Abstrac
         indexingConfig = createIndexingConfiguration(nsMappings);
         analyzer.setIndexingConfig(indexingConfig);
 
+        // initialize the Tika parser
+        parser = createParser();
+
         index = new MultiIndex(this, excludedIDs);
         if (index.numDocs() == 0) {
             Path rootPath;
@@ -565,9 +568,8 @@ public class SearchIndex extends Abstrac
             }
         }
 
-        // initialize spell checker and Tika parser
+        // initialize spell checker
         spellChecker = createSpellChecker();
-        parser = createParser();
 
         log.info("Index initialized: {} Version: {}",
                 new Object[]{path, index.getIndexFormatVersion()});



Mime
View raw message