mirror of https://github.com/apache/lucene.git
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:
parent
38b838b25a
commit
f01acfa744
|
@ -92,7 +92,7 @@ public class PreFlexFields extends FieldsProducer {
|
||||||
|
|
||||||
// make sure that all index files have been read or are kept open
|
// 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
|
// 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;
|
boolean anyProx = false;
|
||||||
for (FieldInfo fi : fieldInfos) {
|
for (FieldInfo fi : fieldInfos) {
|
||||||
if (fi.isIndexed) {
|
if (fi.isIndexed) {
|
||||||
|
@ -105,7 +105,7 @@ public class PreFlexFields extends FieldsProducer {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (anyProx) {
|
if (anyProx) {
|
||||||
proxStream = dir.openInput(info.name + ".prx", readBufferSize);
|
proxStream = dir.openInput(IndexFileNames.segmentFileName(info.name, "", PreFlexCodec.PROX_EXTENSION), readBufferSize);
|
||||||
} else {
|
} else {
|
||||||
proxStream = null;
|
proxStream = null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue