
if (new File(termsFilename).length() == 0L) {
</BUG>
return new NullStringTermIterator(docsFilename);
}
<BUG>final String indexFilename = Files.buildPath(directory, "fld-"+field+".strindex");
</BUG>
try {
return new SimpleStringTermIteratorImpl(mapCache, termsFilename, docsFilename, indexFilename);
} catch (IOException e) {

throw new RuntimeException(e);
}
}
@Override
public SimpleStringTermIterator getStringTermIterator(String field) {
final String termsFilename = CachedFile.buildPath(directory, SimpleStringFieldWriter.getTermsFilename(field));
final String docsFilename = CachedFile.buildPath(directory, SimpleStringFieldWriter.getDocsFilename(field));
if (CachedFile.create(termsFilename).length() == 0L) {
return new NullStringTermIterator(docsFilename);
}
final String indexFilename = CachedFile.buildPath(directory, "fld-"+field+".strindex");
try {
return new SimpleStringTermIteratorImpl(mapCache, termsFilename, docsFilename, indexFilename);
} catch (IOException e) {
