use codec ID to create postings file in SimpleTextCodec

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1044089 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Simon Willnauer 2010-12-09 19:00:59 +00:00
parent 013cc3e216
commit fc13ac3112

View File

@ -57,7 +57,7 @@ public class SimpleTextCodec extends Codec {
static final String POSTINGS_EXTENSION = "pst";
static String getPostingsFileName(String segment, String id) {
return IndexFileNames.segmentFileName(segment, "", POSTINGS_EXTENSION);
return IndexFileNames.segmentFileName(segment, id, POSTINGS_EXTENSION);
}
@Override