cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject cvs commit: xml-cocoon2/src/org/apache/cocoon/components/search SimpleLuceneXMLIndexerImpl.java
Date Mon, 24 Dec 2001 21:13:43 GMT
vgritsenko    01/12/24 13:13:43

  Modified:    src/org/apache/cocoon/components/search
                        SimpleLuceneXMLIndexerImpl.java
  Removed:     src/org/apache/cocoon/components/lucene CocoonCrawler.java
                        CocoonErrorHandler.java IndexHelperField.java
                        LuceneCocoonHelper.java LuceneCocoonIndexer.java
                        LuceneCocoonPager.java LuceneCocoonSearcher.java
                        LuceneIndexContentHandler.java
                        LuceneXMLIndexer.java SimpleCocoonCrawlerImpl.java
                        SimpleLuceneCocoonIndexerImpl.java
                        SimpleLuceneCocoonSearcherImpl.java
                        SimpleLuceneXMLIndexerImpl.java
  Log:
  Remove lucene package, replaced by search and crawler packages.
  
  Revision  Changes    Path
  1.2       +9 -1      xml-cocoon2/src/org/apache/cocoon/components/search/SimpleLuceneXMLIndexerImpl.java
  
  Index: SimpleLuceneXMLIndexerImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/org/apache/cocoon/components/search/SimpleLuceneXMLIndexerImpl.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SimpleLuceneXMLIndexerImpl.java	2001/12/23 09:24:46	1.1
  +++ SimpleLuceneXMLIndexerImpl.java	2001/12/24 21:13:43	1.2
  @@ -54,7 +54,7 @@
    * A simple class building lucene documents from xml content.
    *
    * @author     <a href="mailto:berni_huber@a1.net">Bernhard Huber</a>
  - * @version    CVS $Revision: 1.1 $ $Date: 2001/12/23 09:24:46 $
  + * @version    CVS $Revision: 1.2 $ $Date: 2001/12/24 21:13:43 $
    */
   public class SimpleLuceneXMLIndexerImpl extends AbstractLoggable
            implements LuceneXMLIndexer, Configurable, Composable
  @@ -169,6 +169,10 @@
               if (contentType != null &&
                       allowedContentType.contains(contentType)) {
   
  +                if (getLogger().isDebugEnabled()) {
  +                    getLogger().debug("Indexing " + contentURL + " (" + contentType + ")");
  +                }
  +
                   LuceneIndexContentHandler luceneIndexContentHandler = new LuceneIndexContentHandler();
                   indexDocument(contentURLConnection, luceneIndexContentHandler);
                   //
  @@ -182,6 +186,10 @@
                       d.add(new Field(UID_FIELD, uid(contentURLConnection), false, true,
false));
                   }
                   documents = luceneIndexContentHandler.allDocuments();
  +            } else {
  +                if (getLogger().isDebugEnabled()) {
  +                    getLogger().debug("Ignoring " + contentURL + " (" + contentType + ")");
  +                }
               }
           } catch (IOException ioe) {
               throw new ProcessingException("Cannot read URL " + url, ioe);
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          cocoon-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-cvs-help@xml.apache.org


Mime
View raw message