jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1085038 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java
Date Thu, 24 Mar 2011 17:10:15 GMT
Author: jukka
Date: Thu Mar 24 17:10:14 2011
New Revision: 1085038

URL: http://svn.apache.org/viewvc?rev=1085038&view=rev
Log:
JCR-2873: Add a way to locate full text extraction problems

Use a special "TextExtractionError" token to make these cases searchable.
Also reduce the log level extraction failures to avoid confusing users.

Modified:
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java?rev=1085038&r1=1085037&r2=1085038&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/LazyTextExtractorField.java
Thu Mar 24 17:10:14 2011
@@ -178,7 +178,11 @@ public class LazyTextExtractorField exte
                 }
             } catch (Throwable t) {
                 if (t != STOP) {
-                    log.warn("Failed to extract text from a binary property", t);
+                    log.debug("Failed to extract text from a binary property."
+                            + " This is a fairly common case, and nothing to"
+                            + " worry about. The stack trace is included to"
+                            + " help improve the text extraction feature.", t);
+                    builder.replace(0, builder.length(), "TextExtractionError");
                 }
             } finally {
                 value.discard();



Mime
View raw message