mirror of
https://github.com/apache/lucene.git
synced 2025-02-07 10:38:40 +00:00
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:
parent
a34be5b16e
commit
bbf935c6b4
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user