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/src/blocks/lucene/java/org/apache/cocoon/transformation LuceneIndexTransformer.java
Date Tue, 19 Aug 2003 23:04:04 GMT
joerg       2003/08/19 16:04:04

  Modified:    src/blocks/lucene/java/org/apache/cocoon/transformation
                        LuceneIndexTransformer.java
  Log:
  clean up
  
  Revision  Changes    Path
  1.8       +7 -3      cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/transformation/LuceneIndexTransformer.java
  
  Index: LuceneIndexTransformer.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/lucene/java/org/apache/cocoon/transformation/LuceneIndexTransformer.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- LuceneIndexTransformer.java	19 Aug 2003 01:34:20 -0000	1.7
  +++ LuceneIndexTransformer.java	19 Aug 2003 23:04:04 -0000	1.8
  @@ -182,10 +182,14 @@
        * Called when the pipeline is assembled.
        * The parameters are those specified as child elements of the
        * <code>&lt;map:transform&gt;</code> element in the sitemap.
  +     * These parameters are optional: 
  +     * If no parameters are specified here then the defaults are 
  +     * supplied by the component configuration.
  +     * Any parameters specified here may be over-ridden by attributes
  +     * of the lucene:index element in the input document.
        */
       public void setup(SourceResolver resolver, Map objectModel, String src, Parameters
parameters)
       throws ProcessingException, SAXException, IOException {
  -        // TODO: We don't need all this stuff
           setupConfiguration = new IndexerConfiguration(
               parameters.getParameter(ANALYZER_CLASSNAME_PARAMETER, configureConfiguration.analyzerClassname),
               parameters.getParameter(DIRECTORY_PARAMETER, configureConfiguration.indexDirectory),
  @@ -389,7 +393,7 @@
   
                   Attributes atts = tos.getAttributes();
                   boolean attributesToText = atts.getIndex(LUCENE_URI, LUCENE_ELEMENT_ATTR_TO_TEXT_ATTRIBUTE)
!= -1;
  -                for (int i = 0; atts != null && i < atts.getLength(); i++) {
  +                for (int i = 0; i < atts.getLength(); i++) {
                       // Ignore Lucene attributes
                       if (LUCENE_URI.equals(atts.getURI(i)))
                           continue;
  
  
  

Mime
View raw message