lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ehatc...@apache.org
Subject cvs commit: jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant IndexTask.java
Date Thu, 05 Aug 2004 14:32:29 GMT
ehatcher    2004/08/05 07:32:29

  Modified:    contributions/ant/src/main/org/apache/lucene/ant
                        IndexTask.java
  Log:
  set compound format, regardless of create flag
  
  Revision  Changes    Path
  1.7       +2 -3      jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java
  
  Index: IndexTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene-sandbox/contributions/ant/src/main/org/apache/lucene/ant/IndexTask.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- IndexTask.java	22 Feb 2004 14:50:04 -0000	1.6
  +++ IndexTask.java	5 Aug 2004 14:32:28 -0000	1.7
  @@ -245,9 +245,7 @@
       IndexWriter writer =
         new IndexWriter(indexDir, analyzer, create);
   
  -    if (create && useCompoundIndex) {
  -      writer.setUseCompoundFile(useCompoundIndex);
  -    }
  +    writer.setUseCompoundFile(useCompoundIndex);
       int totalFiles = 0;
       int totalIndexed = 0;
       int totalIgnored = 0;
  @@ -292,6 +290,7 @@
                   if (indexModified != null) {
                     if (DateField.stringToTime(indexModified)
                       == file.lastModified()) {
  +                    // TODO: remove existing document
                       indexIt = false;
                     }
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org


Mime
View raw message