jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r540953 - /jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java
Date Wed, 23 May 2007 13:40:54 GMT
Author: mreutegg
Date: Wed May 23 06:40:53 2007
New Revision: 540953

URL: http://svn.apache.org/viewvc?view=rev&rev=540953
Log:
JCR-920: rep:excerpt() should also work on properties

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

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java?view=diff&rev=540953&r1=540952&r2=540953
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/query/lucene/NodeIndexer.java
Wed May 23 06:40:53 2007
@@ -544,9 +544,6 @@
                                   Object internalValue, boolean tokenized,
                                   boolean includeInNodeIndex, float boost) {
         String stringValue = String.valueOf(internalValue);
-        if (stringValue.length() == 0) {
-            return;
-        }
 
         // simple String
         doc.add(new Field(FieldNames.PROPERTIES,
@@ -555,6 +552,9 @@
                 Field.Index.UN_TOKENIZED,
                 Field.TermVector.NO));
         if (tokenized) {
+            if (stringValue.length() == 0) {
+                return;
+            }
             // create fulltext index on property
             int idx = fieldName.indexOf(':');
             fieldName = fieldName.substring(0, idx + 1)



Mime
View raw message