cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.1 status.xml
Date Sat, 06 Mar 2004 14:44:46 GMT
joerg       2004/03/06 06:44:46

  Modified:    src/blocks/lucene/java/org/apache/cocoon/components/search
                        LuceneIndexContentHandler.java
               .        status.xml
  Log:
  fix bug 25934, thanks to Philipp Matthias Hahn: Avoid "CLOBs" when indexing XML without
superfluous whitespace (Lucene).
  
  Revision  Changes    Path
  1.5       +6 -6      cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search/LuceneIndexContentHandler.java
  
  Index: LuceneIndexContentHandler.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/components/search/LuceneIndexContentHandler.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- LuceneIndexContentHandler.java	5 Mar 2004 13:01:59 -0000	1.4
  +++ LuceneIndexContentHandler.java	6 Mar 2004 14:44:46 -0000	1.5
  @@ -120,12 +120,12 @@
       public void characters(char[] ch, int start, int length) {
   
           if (ch.length > 0 && start >= 0 && length > 1) {
  -            String text = new String(ch, start, length);
               if (elementStack.size() > 0) {
                   IndexHelperField tos = (IndexHelperField) elementStack.peek();
  -                tos.appendText(text);
  +                tos.appendText(ch, start, length);
               }
  -            bodyText.append(text);
  +            bodyText.append(' ');
  +            bodyText.append(ch, start, length);
           }
       }
   
  @@ -166,10 +166,10 @@
               String atts_value = atts.getValue(i);
               bodyDocument.add(Field.UnStored(lname + "@" + atts_lname, atts_value));
               if (attributesToText) {
  -                text.append(atts_value);
                   text.append(' ');
  -                bodyText.append(atts_value);
  +                text.append(atts_value);
                   bodyText.append(' ');
  +                bodyText.append(atts_value);
               }
           }
   
  
  
  
  1.262     +4 -1      cocoon-2.1/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/status.xml,v
  retrieving revision 1.261
  retrieving revision 1.262
  diff -u -r1.261 -r1.262
  --- status.xml	6 Mar 2004 14:05:04 -0000	1.261
  +++ status.xml	6 Mar 2004 14:44:46 -0000	1.262
  @@ -196,6 +196,9 @@
     <changes>
   
    <release version="@version@" date="@date@">
  +   <action dev="JH" type="fix" fixes-bug="25934" due-to="Philipp Matthias Hahn" due-to-email="pmhahn@titan.lahn.de">
  +     Avoid "CLOBs" when indexing XML without superfluous whitespace (Lucene).
  +   </action>
      <action dev="JH" type="fix" fixes-bug="25594" due-to="Gernot Koller" due-to-email="grizzly@gmx.at">
        Allow streaming of uploaded files into a pipeline using StreamGenerator.
      </action>
  
  
  

Mime
View raw message