Implements the Lucene 4.0 index format, with configurable per-field postings formats.
If you want to reuse functionality of this codec in another codec, extend {@link FilterCodec}.
@see org.apache.lucene.codecs.lucene40 package documentation for file format details.
@deprecated Only for reading old 4.0 segments
class AppendingRWPostingsFormat extends AppendingPostingsFormat {
@Override
public FieldsConsumer fieldsConsumer(SegmentWriteState state) throws IOException {
PostingsWriterBase docsWriter = new Lucene40PostingsWriter(state);
boolean success = false;
try {
FieldsConsumer ret = new AppendingTermsWriter(state, docsWriter, BlockTreeTermsWriter.DEFAULT_MIN_BLOCK_SIZE, BlockTreeTermsWriter.DEFAULT_MAX_BLOCK_SIZE);
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.