org.apache.lucene.codecs.memory

Class MemoryPostingsFormat

  • All Implemented Interfaces:
    NamedSPILoader.NamedSPI


    public final class MemoryPostingsFormat
    extends PostingsFormat
    Stores terms and postings (docs, positions, payloads) in RAM, using an FST.

    Note that this codec implements advance as a linear scan! This means if you store large fields in here, queries that rely on advance will (AND BooleanQuery, PhraseQuery) will be relatively slow!