fix for BUG 30668 and name of separate norms file

changed from .f to .s


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150438 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Christoph Goller 2004-08-17 08:56:08 +00:00
parent a34be5b16e
commit bbf935c6b4

View File

@ -185,9 +185,9 @@ final class SegmentReader extends IndexReader {
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;
}