use constants to build file names in PreFlexFields

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1136450 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2011-06-16 14:18:16 +00:00
parent 38b838b25a
commit f01acfa744
1 changed files with 2 additions and 2 deletions

View File

@ -92,7 +92,7 @@ public class PreFlexFields extends FieldsProducer {
// make sure that all index files have been read or are kept open
// so that if an index update removes them we'll still have them
freqStream = dir.openInput(info.name + ".frq", readBufferSize);
freqStream = dir.openInput(IndexFileNames.segmentFileName(info.name, "", PreFlexCodec.FREQ_EXTENSION), readBufferSize);
boolean anyProx = false;
for (FieldInfo fi : fieldInfos) {
if (fi.isIndexed) {
@ -105,7 +105,7 @@ public class PreFlexFields extends FieldsProducer {
}
if (anyProx) {
proxStream = dir.openInput(info.name + ".prx", readBufferSize);
proxStream = dir.openInput(IndexFileNames.segmentFileName(info.name, "", PreFlexCodec.PROX_EXTENSION), readBufferSize);
} else {
proxStream = null;
}