Package | Description |
---|---|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
org.apache.lucene.codecs.asserting |
Codec for testing that asserts various contracts of the codec apis.
|
org.apache.lucene.codecs.blockterms |
Pluggable term index / block terms dictionary implementations.
|
org.apache.lucene.codecs.blocktreeords |
Same postings format as Lucene50, except the terms dictionary also
supports ords, i.e.
|
org.apache.lucene.codecs.bloom |
Codec PostingsFormat for fast access to low-frequency terms
such as primary key fields.
|
org.apache.lucene.codecs.cheapbastard |
Codec that unreasonably tries to use as little RAM as possible.
|
org.apache.lucene.codecs.cranky |
Codec for testing that throws random IOExceptions
|
org.apache.lucene.codecs.idversion |
A primary-key postings format that associates a version (long) with each term and
can provide fail-fast lookups by ID and version.
|
org.apache.lucene.codecs.lucene50 |
Components from the Lucene 5.0 index format
See
org.apache.lucene.codecs.lucene50 for an overview
of the index format. |
org.apache.lucene.codecs.lucene60 |
Components from the Lucene 6.0 index format.
|
org.apache.lucene.codecs.lucene62 |
Components from the Lucene 6.2 index format
See
org.apache.lucene.codecs.lucene70 for an overview
of the current index format. |
org.apache.lucene.codecs.lucene70 |
Lucene 7.0 file format.
|
org.apache.lucene.codecs.memory |
Term dictionary, DocValues or Postings formats that are read
entirely into memory.
|
org.apache.lucene.codecs.mockrandom |
Frankenstein codec for testing that pieces together random components.
|
org.apache.lucene.codecs.perfield |
Postings format that can delegate to different formats per-field.
|
org.apache.lucene.codecs.ramonly |
Codec for testing that never writes to disk.
|
org.apache.lucene.codecs.simpletext |
Simpletext Codec: writes human readable postings.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Field and Description |
---|---|
static PostingsFormat[] |
PostingsFormat.EMPTY
Zero-length
PostingsFormat array. |
Modifier and Type | Method and Description |
---|---|
static PostingsFormat |
PostingsFormat.forName(java.lang.String name)
looks up a format by name
|
abstract PostingsFormat |
Codec.postingsFormat()
Encodes/decodes postings
|
PostingsFormat |
FilterCodec.postingsFormat() |
Modifier and Type | Class and Description |
---|---|
class |
AssertingPostingsFormat
Just like the default postings format but with additional asserts.
|
Modifier and Type | Method and Description |
---|---|
PostingsFormat |
AssertingCodec.getPostingsFormatForField(java.lang.String field)
Returns the postings format that should be used for writing
new segments of
field . |
PostingsFormat |
AssertingCodec.postingsFormat() |
Modifier and Type | Class and Description |
---|---|
class |
LuceneFixedGap
Customized version of
Lucene50PostingsFormat that uses
FixedGapTermsIndexWriter . |
class |
LuceneVarGapDocFreqInterval
Customized version of
Lucene50PostingsFormat that uses
VariableGapTermsIndexWriter with a fixed interval, but
forcing high docfreq terms to be indexed terms. |
class |
LuceneVarGapFixedInterval
Customized version of
Lucene50PostingsFormat that uses
VariableGapTermsIndexWriter with a fixed interval. |
Modifier and Type | Class and Description |
---|---|
class |
BlockTreeOrdsPostingsFormat
Uses
OrdsBlockTreeTermsWriter with Lucene50PostingsWriter . |
Modifier and Type | Class and Description |
---|---|
class |
BloomFilteringPostingsFormat
A
PostingsFormat useful for low doc-frequency fields such as primary
keys. |
class |
TestBloomFilteredLucenePostings
A class used for testing
BloomFilteringPostingsFormat with a concrete
delegate (Lucene41). |
Constructor and Description |
---|
BloomFilteringPostingsFormat(PostingsFormat delegatePostingsFormat)
Creates Bloom filters for a selection of fields created in the index.
|
BloomFilteringPostingsFormat(PostingsFormat delegatePostingsFormat,
BloomFilterFactory bloomFilterFactory)
Creates Bloom filters for a selection of fields created in the index.
|
Modifier and Type | Method and Description |
---|---|
PostingsFormat |
CheapBastardCodec.postingsFormat() |
Modifier and Type | Method and Description |
---|---|
PostingsFormat |
CrankyCodec.postingsFormat() |
Modifier and Type | Class and Description |
---|---|
class |
IDVersionPostingsFormat
A PostingsFormat optimized for primary-key (ID) fields that also
record a version (long) for each ID, delivered as a payload
created by
IDVersionPostingsFormat.longToBytes(long, org.apache.lucene.util.BytesRef) during indexing. |
Modifier and Type | Class and Description |
---|---|
class |
Lucene50PostingsFormat
Lucene 5.0 postings format, which encodes postings in packed integer blocks
for fast decode.
|
Modifier and Type | Method and Description |
---|---|
PostingsFormat |
Lucene60Codec.getPostingsFormatForField(java.lang.String field)
Deprecated.
Returns the postings format that should be used for writing
new segments of
field . |
PostingsFormat |
Lucene60Codec.postingsFormat()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PostingsFormat |
Lucene62Codec.getPostingsFormatForField(java.lang.String field)
Returns the postings format that should be used for writing
new segments of
field . |
PostingsFormat |
Lucene62Codec.postingsFormat() |
Modifier and Type | Method and Description |
---|---|
PostingsFormat |
Lucene70Codec.getPostingsFormatForField(java.lang.String field)
Returns the postings format that should be used for writing
new segments of
field . |
PostingsFormat |
Lucene70Codec.postingsFormat() |
Modifier and Type | Class and Description |
---|---|
class |
DirectPostingsFormat
Wraps
Lucene50PostingsFormat format for on-disk
storage, but then at read time loads and stores all
terms and postings directly in RAM as byte[], int[]. |
class |
FSTOrdPostingsFormat
FSTOrd term dict + Lucene50PBF
|
class |
FSTPostingsFormat
FST term dict + Lucene50PBF
|
class |
MemoryPostingsFormat
Stores terms and postings (docs, positions, payloads) in
RAM, using an FST.
|
Modifier and Type | Class and Description |
---|---|
class |
MockRandomPostingsFormat
Randomly combines terms index impl w/ postings impls.
|
Modifier and Type | Class and Description |
---|---|
class |
PerFieldPostingsFormat
Enables per field postings support.
|
Modifier and Type | Method and Description |
---|---|
abstract PostingsFormat |
PerFieldPostingsFormat.getPostingsFormatForField(java.lang.String field)
Returns the postings format that should be used for writing
new segments of
field . |
Modifier and Type | Class and Description |
---|---|
class |
RAMOnlyPostingsFormat
Stores all postings data in RAM, but writes a small
token (header + single int) to identify which "slot" the
index is using in RAM HashMap.
|
Modifier and Type | Method and Description |
---|---|
PostingsFormat |
SimpleTextCodec.postingsFormat() |
Modifier and Type | Method and Description |
---|---|
PostingsFormat |
RandomCodec.getPostingsFormatForField(java.lang.String name) |
Modifier and Type | Class and Description |
---|---|
class |
Completion50PostingsFormat
|
class |
CompletionPostingsFormat
A
PostingsFormat which supports document suggestion based on
indexed SuggestField s. |
Modifier and Type | Method and Description |
---|---|
protected abstract PostingsFormat |
CompletionPostingsFormat.delegatePostingsFormat()
Concrete implementation should specify the delegating postings format
|
protected PostingsFormat |
Completion50PostingsFormat.delegatePostingsFormat() |
Modifier and Type | Method and Description |
---|---|
static PostingsFormat |
TestUtil.getDefaultPostingsFormat()
Returns the actual default postings format (e.g.
|
static PostingsFormat |
TestUtil.getDefaultPostingsFormat(int minItemsPerBlock,
int maxItemsPerBlock)
Returns the actual default postings format (e.g.
|
static PostingsFormat |
TestUtil.getPostingsFormatWithOrds(java.util.Random r)
Returns a random postings format that supports term ordinals
|
Modifier and Type | Method and Description |
---|---|
static Codec |
TestUtil.alwaysPostingsFormat(PostingsFormat format)
Return a Codec that can read any of the
default codecs and formats, but always writes in the specified
format.
|
Copyright © 2000–2019 The Apache Software Foundation. All rights reserved.