Uses of Package
org.apache.lucene.index
-
Packages that use org.apache.lucene.index Package Description org.apache.lucene.codecs Codecs API: API for customization of the encoding and structure of the index.org.apache.lucene.codecs.compressing StoredFieldsFormat that allows cross-document and cross-field compression of stored fields.org.apache.lucene.codecs.lucene3x Codec to support Lucene 3.x indexes (readonly)org.apache.lucene.codecs.lucene40 Lucene 4.0 file format.org.apache.lucene.codecs.lucene41 Lucene 4.1 file format.org.apache.lucene.codecs.lucene42 Lucene 4.2 file format.org.apache.lucene.codecs.lucene45 Lucene 4.5 file format.org.apache.lucene.codecs.lucene46 Lucene 4.6 file format.org.apache.lucene.codecs.perfield Postings format that can delegate to different formats per-field.org.apache.lucene.document The logical representation of aDocument
for indexing and searching.org.apache.lucene.index Code to maintain and access indices.org.apache.lucene.search Code to search indices.org.apache.lucene.search.payloads The payloads package provides Query mechanisms for finding and using payloads.org.apache.lucene.search.similarities This package contains the various ranking models that can be used in Lucene.org.apache.lucene.search.spans The calculus of spans.org.apache.lucene.util Some utility classes.org.apache.lucene.util.automaton Finite-state automaton for regular expressions.org.apache.lucene.util.packed Packed integer arrays and streams. -
Classes in org.apache.lucene.index used by org.apache.lucene.codecs Class Description BinaryDocValues A per-document byte[]DocsAndPositionsEnum Also iterates through positions.DocsEnum Iterates through the documents and term freqs.FieldInfo Access to the Field Info file that describes document fields and whether or not they are indexed.FieldInfo.IndexOptions Controls how much information is stored in the postings lists.FieldInfos Collection ofFieldInfo
s (accessible by number or by name).Fields Flex API for access to fields and termsIndexableField Represents a single field for indexing.MergeState Holds common state used during segment merging.MultiDocsAndPositionsEnum.EnumWithSlice Holds aDocsAndPositionsEnum
along with the correspondingReaderSlice
.MultiDocsEnum.EnumWithSlice Holds aDocsEnum
along with the correspondingReaderSlice
.NumericDocValues A per-document numeric value.OrdTermState An ordinal basedTermState
SegmentCommitInfo Embeds a [read-only] SegmentInfo and adds per-commit fields.SegmentInfo Information about a segment such as it's name, directory, and files related to the segment.SegmentReadState Holder class for common parameters used during read.SegmentWriteState Holder class for common parameters used during write.SortedDocValues A per-document byte[] with presorted values.SortedSetDocValues A per-document set of presorted byte[] values.StoredFieldVisitor Expert: provides a low-level means of accessing the stored field values in an index.Terms Access to the terms in a specific field.TermsEnum Iterator to seek (TermsEnum.seekCeil(BytesRef)
,TermsEnum.seekExact(BytesRef)
) or step through (BytesRefIterator.next()
terms to obtain frequency information (TermsEnum.docFreq()
),DocsEnum
orDocsAndPositionsEnum
for the current term (TermsEnum.docs(org.apache.lucene.util.Bits, org.apache.lucene.index.DocsEnum)
.TermState Encapsulates all required internal state to position the associatedTermsEnum
without re-seeking. -
Classes in org.apache.lucene.index used by org.apache.lucene.codecs.compressing Class Description FieldInfo Access to the Field Info file that describes document fields and whether or not they are indexed.FieldInfos Collection ofFieldInfo
s (accessible by number or by name).Fields Flex API for access to fields and termsIndexableField Represents a single field for indexing.MergeState Holds common state used during segment merging.SegmentInfo Information about a segment such as it's name, directory, and files related to the segment.StoredFieldVisitor Expert: provides a low-level means of accessing the stored field values in an index. -
Classes in org.apache.lucene.index used by org.apache.lucene.codecs.lucene3x Class Description SegmentInfo Information about a segment such as it's name, directory, and files related to the segment.SegmentInfos A collection of segmentInfo objects with methods for operating on those segments in relation to the file system. -
Classes in org.apache.lucene.index used by org.apache.lucene.codecs.lucene40 Class Description DocsAndPositionsEnum Also iterates through positions.DocsEnum Iterates through the documents and term freqs.FieldInfo Access to the Field Info file that describes document fields and whether or not they are indexed.FieldInfos Collection ofFieldInfo
s (accessible by number or by name).Fields Flex API for access to fields and termsIndexableField Represents a single field for indexing.MergeState Holds common state used during segment merging.SegmentCommitInfo Embeds a [read-only] SegmentInfo and adds per-commit fields.SegmentInfo Information about a segment such as it's name, directory, and files related to the segment.SegmentReadState Holder class for common parameters used during read.SegmentWriteState Holder class for common parameters used during write.StoredFieldVisitor Expert: provides a low-level means of accessing the stored field values in an index. -
Classes in org.apache.lucene.index used by org.apache.lucene.codecs.lucene41 Class Description DocsAndPositionsEnum Also iterates through positions.DocsEnum Iterates through the documents and term freqs.FieldInfo Access to the Field Info file that describes document fields and whether or not they are indexed.FieldInfos Collection ofFieldInfo
s (accessible by number or by name).SegmentInfo Information about a segment such as it's name, directory, and files related to the segment.SegmentReadState Holder class for common parameters used during read.SegmentWriteState Holder class for common parameters used during write. -
Classes in org.apache.lucene.index used by org.apache.lucene.codecs.lucene42 Class Description SegmentReadState Holder class for common parameters used during read.SegmentWriteState Holder class for common parameters used during write. -
Classes in org.apache.lucene.index used by org.apache.lucene.codecs.lucene45 Class Description BinaryDocValues A per-document byte[]FieldInfo Access to the Field Info file that describes document fields and whether or not they are indexed.NumericDocValues A per-document numeric value.SegmentReadState Holder class for common parameters used during read.SegmentWriteState Holder class for common parameters used during write.SortedDocValues A per-document byte[] with presorted values.SortedSetDocValues A per-document set of presorted byte[] values. -
Classes in org.apache.lucene.index used by org.apache.lucene.codecs.lucene46 Class Description FieldInfos Collection ofFieldInfo
s (accessible by number or by name).SegmentInfo Information about a segment such as it's name, directory, and files related to the segment. -
Classes in org.apache.lucene.index used by org.apache.lucene.codecs.perfield Class Description SegmentReadState Holder class for common parameters used during read.SegmentWriteState Holder class for common parameters used during write. -
Classes in org.apache.lucene.index used by org.apache.lucene.document Class Description FieldInfo Access to the Field Info file that describes document fields and whether or not they are indexed.FieldInfo.DocValuesType DocValues types.FieldInfo.IndexOptions Controls how much information is stored in the postings lists.IndexableField Represents a single field for indexing.IndexableFieldType Describes the properties of a field.StoredFieldVisitor Expert: provides a low-level means of accessing the stored field values in an index.StoredFieldVisitor.Status Enumeration of possible return values forStoredFieldVisitor.needsField(org.apache.lucene.index.FieldInfo)
. -
Classes in org.apache.lucene.index used by org.apache.lucene.index Class Description AtomicReader AtomicReader
is an abstract class, providing an interface for accessing an index.AtomicReaderContext IndexReaderContext
forAtomicReader
instances.BaseCompositeReader Base class for implementingCompositeReader
s based on an array of sub-readers.BinaryDocValues A per-document byte[]CheckIndex.Status Returned fromCheckIndex.checkIndex()
detailing the health and status of the index.CheckIndex.Status.DocValuesStatus Status from testing DocValuesCheckIndex.Status.FieldNormStatus Status from testing field norms.CheckIndex.Status.SegmentInfoStatus Holds the status of each segment in the index.CheckIndex.Status.StoredFieldStatus Status from testing stored fields.CheckIndex.Status.TermIndexStatus Status from testing term index.CheckIndex.Status.TermVectorStatus Status from testing stored fields.CompositeReader Instances of this reader type can only be used to get stored fields from the underlying AtomicReaders, but it is not possible to directly retrieve postings.CompositeReaderContext IndexReaderContext
forCompositeReader
instance.ConcurrentMergeScheduler.MergeThread Runs a merge thread, which may run one or more merges in sequence.CorruptIndexException This exception is thrown when Lucene detects an inconsistency in the index.DirectoryReader DirectoryReader is an implementation ofCompositeReader
that can read indexes in aDirectory
.DocsAndPositionsEnum Also iterates through positions.DocsEnum Iterates through the documents and term freqs.FieldInfo Access to the Field Info file that describes document fields and whether or not they are indexed.FieldInfo.DocValuesType DocValues types.FieldInfo.IndexOptions Controls how much information is stored in the postings lists.FieldInfos Collection ofFieldInfo
s (accessible by number or by name).Fields Flex API for access to fields and termsFilterDirectoryReader.SubReaderWrapper Factory class passed to FilterDirectoryReader constructor that allows subclasses to wrap the filtered DirectoryReader's subreaders.FilteredTermsEnum Abstract class for enumerating a subset of all terms.FilteredTermsEnum.AcceptStatus Return value, if term should be accepted or the iteration shouldEND
.IndexableField Represents a single field for indexing.IndexableFieldType Describes the properties of a field.IndexCommit Expert: represents a single commit into an index as seen by theIndexDeletionPolicy
orIndexReader
.IndexDeletionPolicy Expert: policy for deletion of staleindex commits
.IndexReader IndexReader is an abstract class, providing an interface for accessing an index.IndexReader.ReaderClosedListener A custom listener that's invoked when the IndexReader is closed.IndexReaderContext A struct like class that represents a hierarchical relationship betweenIndexReader
instances.IndexWriter AnIndexWriter
creates and maintains an index.IndexWriter.IndexReaderWarmer IfDirectoryReader.open(IndexWriter,boolean)
has been called (ie, this writer is in near real-time mode), then after a merge completes, this class can be invoked to warm the reader on the newly merged segment, before the merge commits.IndexWriterConfig Holds all the configuration that is used to create anIndexWriter
.IndexWriterConfig.OpenMode Specifies the open mode forIndexWriter
.LiveIndexWriterConfig Holds all the configuration used byIndexWriter
with few setters for settings that can be changed on anIndexWriter
instance "live".LogMergePolicy This class implements aMergePolicy
that tries to merge segments into levels of exponentially increasing size, where each level has fewer segments than the value of the merge factor.MergePolicy Expert: a MergePolicy determines the sequence of primitive merge operations.MergePolicy.DocMap A map of doc IDs.MergePolicy.MergeAbortedException Thrown when a merge was explicity aborted becauseIndexWriter.close(boolean)
was called withfalse
.MergePolicy.MergeSpecification A MergeSpecification instance provides the information necessary to perform multiple merges.MergePolicy.MergeTrigger MergeTrigger is passed toMergePolicy.findMerges(MergeTrigger, SegmentInfos)
to indicate the event that triggered the merge.MergePolicy.OneMerge OneMerge provides the information necessary to perform an individual primitive merge operation, resulting in a single new segment.MergeScheduler Expert:IndexWriter
uses an instance implementing this interface to execute the merges selected by aMergePolicy
.MergeState Holds common state used during segment merging.MergeState.CheckAbort Class for recording units of work when merging segments.MergeState.DocMap Remaps docids around deletes during mergeMultiDocsAndPositionsEnum Exposes flex API, merged from flex API of sub-segments.MultiDocsAndPositionsEnum.EnumWithSlice Holds aDocsAndPositionsEnum
along with the correspondingReaderSlice
.MultiDocsEnum.EnumWithSlice Holds aDocsEnum
along with the correspondingReaderSlice
.MultiDocValues.OrdinalMap maps per-segment ordinals to/from global ordinal spaceMultiTermsEnum NumericDocValues A per-document numeric value.ReaderSlice Subreader slice from a parent composite reader.SegmentCommitInfo Embeds a [read-only] SegmentInfo and adds per-commit fields.SegmentInfo Information about a segment such as it's name, directory, and files related to the segment.SegmentInfos A collection of segmentInfo objects with methods for operating on those segments in relation to the file system.SegmentReader IndexReader implementation over a single segment.SegmentReader.CoreClosedListener Called when the shared core for this SegmentReader is closed.SegmentReadState Holder class for common parameters used during read.SegmentWriteState Holder class for common parameters used during write.SnapshotDeletionPolicy AnIndexDeletionPolicy
that wraps any otherIndexDeletionPolicy
and adds the ability to hold and later release snapshots of an index.SortedDocValues A per-document byte[] with presorted values.SortedSetDocValues A per-document set of presorted byte[] values.StoredFieldVisitor Expert: provides a low-level means of accessing the stored field values in an index.StoredFieldVisitor.Status Enumeration of possible return values forStoredFieldVisitor.needsField(org.apache.lucene.index.FieldInfo)
.Term A Term represents a word from text.TermContext Terms Access to the terms in a specific field.TermsEnum Iterator to seek (TermsEnum.seekCeil(BytesRef)
,TermsEnum.seekExact(BytesRef)
) or step through (BytesRefIterator.next()
terms to obtain frequency information (TermsEnum.docFreq()
),DocsEnum
orDocsAndPositionsEnum
for the current term (TermsEnum.docs(org.apache.lucene.util.Bits, org.apache.lucene.index.DocsEnum)
.TermsEnum.SeekStatus Represents returned result fromTermsEnum.seekCeil(org.apache.lucene.util.BytesRef)
.TermState Encapsulates all required internal state to position the associatedTermsEnum
without re-seeking.TieredMergePolicy Merges segments of approximately equal size, subject to an allowed number of segments per tier.TieredMergePolicy.MergeScore Holds score and explanation for a single candidate merge.TwoPhaseCommit An interface for implementations that support 2-phase commit.TwoPhaseCommitTool.CommitFailException Thrown byTwoPhaseCommitTool.execute(TwoPhaseCommit...)
when an object fails to commit().TwoPhaseCommitTool.PrepareCommitFailException Thrown byTwoPhaseCommitTool.execute(TwoPhaseCommit...)
when an object fails to prepareCommit(). -
Classes in org.apache.lucene.index used by org.apache.lucene.search Class Description AtomicReader AtomicReader
is an abstract class, providing an interface for accessing an index.AtomicReaderContext IndexReaderContext
forAtomicReader
instances.BinaryDocValues A per-document byte[]DocsAndPositionsEnum Also iterates through positions.DocsEnum Iterates through the documents and term freqs.FilteredTermsEnum Abstract class for enumerating a subset of all terms.FilteredTermsEnum.AcceptStatus Return value, if term should be accepted or the iteration shouldEND
.IndexReader IndexReader is an abstract class, providing an interface for accessing an index.IndexReaderContext A struct like class that represents a hierarchical relationship betweenIndexReader
instances.IndexWriter AnIndexWriter
creates and maintains an index.SortedDocValues A per-document byte[] with presorted values.SortedSetDocValues A per-document set of presorted byte[] values.StoredFieldVisitor Expert: provides a low-level means of accessing the stored field values in an index.Term A Term represents a word from text.TermContext Terms Access to the terms in a specific field.TermsEnum Iterator to seek (TermsEnum.seekCeil(BytesRef)
,TermsEnum.seekExact(BytesRef)
) or step through (BytesRefIterator.next()
terms to obtain frequency information (TermsEnum.docFreq()
),DocsEnum
orDocsAndPositionsEnum
for the current term (TermsEnum.docs(org.apache.lucene.util.Bits, org.apache.lucene.index.DocsEnum)
.TermsEnum.SeekStatus Represents returned result fromTermsEnum.seekCeil(org.apache.lucene.util.BytesRef)
.TermState Encapsulates all required internal state to position the associatedTermsEnum
without re-seeking.TrackingIndexWriter Class that tracks changes to a delegated IndexWriter, used byControlledRealTimeReopenThread
to ensure specific changes are visible. -
Classes in org.apache.lucene.index used by org.apache.lucene.search.payloads Class Description AtomicReaderContext IndexReaderContext
forAtomicReader
instances.DocsEnum Iterates through the documents and term freqs.IndexReaderContext A struct like class that represents a hierarchical relationship betweenIndexReader
instances.Term A Term represents a word from text. -
Classes in org.apache.lucene.index used by org.apache.lucene.search.similarities Class Description AtomicReaderContext IndexReaderContext
forAtomicReader
instances.FieldInvertState This class tracks the number and position / offset parameters of terms being added to the index. -
Classes in org.apache.lucene.index used by org.apache.lucene.search.spans Class Description AtomicReaderContext IndexReaderContext
forAtomicReader
instances.DocsAndPositionsEnum Also iterates through positions.DocsEnum Iterates through the documents and term freqs.IndexReader IndexReader is an abstract class, providing an interface for accessing an index.Term A Term represents a word from text.TermContext -
Classes in org.apache.lucene.index used by org.apache.lucene.util Class Description NumericDocValues A per-document numeric value.Term A Term represents a word from text.TermsEnum Iterator to seek (TermsEnum.seekCeil(BytesRef)
,TermsEnum.seekExact(BytesRef)
) or step through (BytesRefIterator.next()
terms to obtain frequency information (TermsEnum.docFreq()
),DocsEnum
orDocsAndPositionsEnum
for the current term (TermsEnum.docs(org.apache.lucene.util.Bits, org.apache.lucene.index.DocsEnum)
. -
Classes in org.apache.lucene.index used by org.apache.lucene.util.automaton Class Description Terms Access to the terms in a specific field.TermsEnum Iterator to seek (TermsEnum.seekCeil(BytesRef)
,TermsEnum.seekExact(BytesRef)
) or step through (BytesRefIterator.next()
terms to obtain frequency information (TermsEnum.docFreq()
),DocsEnum
orDocsAndPositionsEnum
for the current term (TermsEnum.docs(org.apache.lucene.util.Bits, org.apache.lucene.index.DocsEnum)
. -
Classes in org.apache.lucene.index used by org.apache.lucene.util.packed Class Description NumericDocValues A per-document numeric value.