lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gol...@apache.org
Subject cvs commit: jakarta-lucene/src/java/org/apache/lucene/index SegmentReader.java
Date Tue, 17 Aug 2004 08:56:09 GMT
goller      2004/08/17 01:56:09

  Modified:    src/java/org/apache/lucene/index SegmentReader.java
  Log:
  fix for BUG 30668 and name of separate norms file
  changed from .f to .s
  
  Revision  Changes    Path
  1.26      +3 -3      jakarta-lucene/src/java/org/apache/lucene/index/SegmentReader.java
  
  Index: SegmentReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/java/org/apache/lucene/index/SegmentReader.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- SegmentReader.java	11 Aug 2004 17:37:52 -0000	1.25
  +++ SegmentReader.java	17 Aug 2004 08:56:08 -0000	1.26
  @@ -185,9 +185,9 @@
     
     static final boolean hasSeparateNorms(SegmentInfo si) throws IOException {
       String[] result = si.dir.list();
  -    String pattern = si.name + ".f";
  +    String pattern = si.name + ".s";
       int patternLength = pattern.length();
  -    for(int i = 0; i < 0; i++){
  +    for(int i = 0; i < result.length; i++){
         if(result[i].startsWith(pattern) && Character.isDigit(result[i].charAt(patternLength)))
           return true;
       }
  
  
  

---------------------------------------------------------------------
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