Package | Description |
---|---|
org.apache.lucene.analysis.util |
Utility functions for text analysis.
|
org.apache.lucene.codecs |
Codecs API: API for customization of the encoding and structure of the index.
|
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.lucene53 for an overview
of the index format. |
org.apache.lucene.codecs.lucene54 |
Lucene 5.4 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 a
Document for indexing and searching. |
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.index.memory |
High-performance single-document main memory Apache Lucene fulltext search index.
|
org.apache.lucene.search |
Code to search indices.
|
org.apache.lucene.search.grouping |
Grouping.
|
org.apache.lucene.search.highlight |
Highlighting search terms.
|
org.apache.lucene.search.join |
Support for index-time and query-time joins.
|
org.apache.lucene.uninverting |
Support for creating docvalues on-the-fly from the inverted index at runtime.
|
org.apache.lucene.util |
Some utility classes.
|
Modifier and Type | Field and Description |
---|---|
static Bits |
UnicodeProps.WHITESPACE
Bitset with Unicode WHITESPACE code points.
|
Modifier and Type | Method and Description |
---|---|
private static Bits |
UnicodeProps.createBits(int... codepoints) |
Modifier and Type | Method and Description |
---|---|
abstract Bits |
DocValuesProducer.getDocsWithField(FieldInfo field)
Returns a
Bits at the size of reader.maxDoc() ,
with turned on bits for each docid that does have a value for this field. |
abstract Bits |
LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context)
Read live docs bits.
|
Modifier and Type | Method and Description |
---|---|
abstract MutableBits |
LiveDocsFormat.newLiveDocs(Bits existing)
Creates a new mutablebits of the same bits set and size of existing.
|
Modifier and Type | Method and Description |
---|---|
void |
DocValuesConsumer.mergeBinaryField(FieldInfo fieldInfo,
MergeState mergeState,
java.util.List<BinaryDocValues> toMerge,
java.util.List<Bits> docsWithField)
Merges the binary docvalues from
toMerge . |
void |
DocValuesConsumer.mergeNumericField(FieldInfo fieldInfo,
MergeState mergeState,
java.util.List<NumericDocValues> toMerge,
java.util.List<Bits> docsWithField)
Merges the numeric docvalues from
toMerge . |
Modifier and Type | Field and Description |
---|---|
private Bits |
IDVersionPostingsWriter.liveDocs |
Constructor and Description |
---|
IDVersionPostingsWriter(Bits liveDocs) |
Modifier and Type | Method and Description |
---|---|
Bits |
Lucene50LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
MutableBits |
Lucene50LiveDocsFormat.newLiveDocs(Bits existing) |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
Lucene54DocValuesProducer.SparseBits |
Modifier and Type | Method and Description |
---|---|
Bits |
Lucene54DocValuesProducer.getDocsWithField(FieldInfo field) |
private Bits |
Lucene54DocValuesProducer.getLiveBits(long offset,
int count) |
Modifier and Type | Method and Description |
---|---|
Bits |
PerFieldDocValuesFormat.FieldsReader.getDocsWithField(FieldInfo field) |
Modifier and Type | Field and Description |
---|---|
Bits |
NearestNeighbor.NearestVisitor.curLiveDocs |
Modifier and Type | Method and Description |
---|---|
static NearestNeighbor.NearestHit[] |
NearestNeighbor.nearest(double pointLat,
double pointLon,
java.util.List<BKDReader> readers,
java.util.List<Bits> liveDocs,
java.util.List<java.lang.Integer> docBases,
int n) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
BitsSlice
Exposes a slice of an existing Bits as a new Bits.
|
(package private) class |
MultiBits
Concatenates multiple Bits together, on every lookup.
|
private static class |
SortingLeafReader.SortingBits |
Modifier and Type | Field and Description |
---|---|
private Bits |
SingletonSortedNumericDocValues.docsWithField |
private Bits |
SortingLeafReader.SortingBits.in |
Bits[] |
MergeState.liveDocs
Live docs for each reader
|
private Bits |
ReadersAndUpdates.liveDocs |
private Bits |
SegmentReader.liveDocs |
(package private) Bits |
PKIndexSplitter.DocumentFilteredLeafIndexReader.liveDocs |
private Bits |
BitsSlice.parent |
Bits |
MultiBits.SubResult.result |
private Bits[] |
MultiBits.subs |
Modifier and Type | Field and Description |
---|---|
(package private) CloseableThreadLocal<java.util.Map<java.lang.String,Bits>> |
CodecReader.docsWithFieldLocal |
Modifier and Type | Method and Description |
---|---|
static Bits |
DocValues.docsWithValue(SortedDocValues dv,
int maxDoc)
Returns a Bits representing all documents from
dv that have a value. |
static Bits |
DocValues.docsWithValue(SortedNumericDocValues dv,
int maxDoc)
Returns a Bits representing all documents from
dv that have a value. |
static Bits |
DocValues.docsWithValue(SortedSetDocValues dv,
int maxDoc)
Returns a Bits representing all documents from
dv that have a value. |
Bits |
SingletonSortedNumericDocValues.getDocsWithField()
Return the wrapped
Bits |
Bits |
SegmentDocValuesProducer.getDocsWithField(FieldInfo field) |
static Bits |
MultiDocValues.getDocsWithField(IndexReader r,
java.lang.String field)
Returns a Bits for a reader's docsWithField (potentially merging on-the-fly)
|
static Bits |
DocValues.getDocsWithField(LeafReader reader,
java.lang.String field)
Returns Bits for the field, or
Bits matching nothing if it has none. |
Bits |
CodecReader.getDocsWithField(java.lang.String field) |
Bits |
FilterLeafReader.getDocsWithField(java.lang.String field) |
abstract Bits |
LeafReader.getDocsWithField(java.lang.String field)
Returns a
Bits at the size of reader.maxDoc() ,
with turned on bits for each docid that does have a value for this field,
or null if no DocValues were indexed for this field. |
Bits |
ParallelLeafReader.getDocsWithField(java.lang.String field) |
Bits |
MergeReaderWrapper.getDocsWithField(java.lang.String field) |
Bits |
SlowCompositeReaderWrapper.getDocsWithField(java.lang.String field)
Deprecated.
|
Bits |
SortingLeafReader.getDocsWithField(java.lang.String field) |
Bits |
FilterCodecReader.getLiveDocs() |
Bits |
FilterLeafReader.getLiveDocs() |
abstract Bits |
LeafReader.getLiveDocs()
Returns the
Bits representing live (not
deleted) docs. |
Bits |
ParallelLeafReader.getLiveDocs() |
Bits |
ReadersAndUpdates.getLiveDocs() |
Bits |
SegmentReader.getLiveDocs() |
Bits |
MergeReaderWrapper.getLiveDocs() |
Bits |
MultiPassIndexSplitter.FakeDeleteLeafIndexReader.getLiveDocs() |
Bits |
PKIndexSplitter.DocumentFilteredLeafIndexReader.getLiveDocs() |
Bits |
SlowCompositeReaderWrapper.getLiveDocs()
Deprecated.
|
Bits |
SortingLeafReader.getLiveDocs() |
static Bits |
MultiFields.getLiveDocs(IndexReader reader)
Returns a single
Bits instance for this
reader, merging live Documents on the
fly. |
Bits |
ReadersAndUpdates.getReadOnlyLiveDocs() |
(package private) Bits |
SortingLeafReader.SortingTermsEnum.newToOld(Bits liveDocs) |
static Bits |
DocValues.unwrapSingletonBits(SortedNumericDocValues dv)
Returns the documents with a value for the SortedNumericDocValues, if it was previously
wrapped with
DocValues.singleton(NumericDocValues, Bits) , or null. |
Modifier and Type | Method and Description |
---|---|
(package private) static MergeState.DocMap |
MergeState.DocMap.build(int maxDoc,
Bits liveDocs) |
private static void |
CheckIndex.checkBinaryDocValues(java.lang.String fieldName,
int maxDoc,
BinaryDocValues dv,
Bits docsWithField) |
private static CheckIndex.Status.TermIndexStatus |
CheckIndex.checkFields(Fields fields,
Bits liveDocs,
int maxDoc,
FieldInfos fieldInfos,
boolean doPrint,
boolean isVectors,
java.io.PrintStream infoStream,
boolean verbose)
checks Fields api is consistent with itself.
|
private static void |
CheckIndex.checkNumericDocValues(java.lang.String fieldName,
int maxDoc,
NumericDocValues ndv,
Bits docsWithField) |
private static void |
CheckIndex.checkSortedDocValues(java.lang.String fieldName,
int maxDoc,
SortedDocValues dv,
Bits docsWithField) |
private static void |
CheckIndex.checkSortedNumericDocValues(java.lang.String fieldName,
int maxDoc,
SortedNumericDocValues ndv,
Bits docsWithField) |
private static void |
CheckIndex.checkSortedSetDocValues(java.lang.String fieldName,
int maxDoc,
SortedSetDocValues dv,
Bits docsWithField) |
(package private) Bits |
SortingLeafReader.SortingTermsEnum.newToOld(Bits liveDocs) |
static SortedNumericDocValues |
DocValues.singleton(NumericDocValues dv,
Bits docsWithField)
Returns a multi-valued view over the provided NumericDocValues
|
Constructor and Description |
---|
BitsSlice(Bits parent,
ReaderSlice slice) |
MultiBits(Bits[] subs,
int[] starts,
boolean defaultValue) |
SegmentReader(SegmentCommitInfo si,
SegmentReader sr,
Bits liveDocs,
int numDocs)
Create new SegmentReader sharing core from a previous
SegmentReader and using the provided in-memory
liveDocs.
|
SingletonSortedNumericDocValues(NumericDocValues in,
Bits docsWithField) |
SortingBits(Bits in,
Sorter.DocMap docMap) |
Modifier and Type | Method and Description |
---|---|
Bits |
MemoryIndex.MemoryIndexReader.getDocsWithField(java.lang.String field) |
Bits |
MemoryIndex.MemoryIndexReader.getLiveDocs() |
Modifier and Type | Field and Description |
---|---|
protected Bits |
DocValuesDocIdSet.acceptDocs |
protected Bits |
FieldComparator.NumericComparator.docsWithField |
private Bits |
FieldComparator.TermValComparator.docsWithField |
Modifier and Type | Method and Description |
---|---|
Bits |
DocIdSet.bits()
Optionally provides a
Bits interface for random access
to matching documents. |
Bits |
DocValuesDocIdSet.bits() |
protected Bits |
FieldComparator.TermValComparator.getDocsWithField(LeafReaderContext context,
java.lang.String field)
Retrieves the set of documents that have a value in this segment
|
protected Bits |
FieldComparator.NumericComparator.getDocsWithValue(LeafReaderContext context,
java.lang.String field)
Retrieves a
Bits instance representing documents that have a value in this segment. |
protected abstract Bits |
RandomAccessWeight.getMatchingDocs(LeafReaderContext context)
Return a
Bits instance representing documents that match this
weight on the given context. |
Modifier and Type | Method and Description |
---|---|
void |
BulkScorer.score(LeafCollector collector,
Bits acceptDocs)
Scores and collects all matching documents.
|
int |
BooleanScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
(package private) void |
BooleanScorer.BulkScorerAndDoc.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
int |
BooleanTopLevelScorers.BoostedBulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
abstract int |
BulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max)
Collects matching documents in a range and return an estimation of the
next matching document which is on or after
max . |
int |
ConstantScoreQuery.ConstantBulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
int |
ReqExclBulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
int |
Weight.DefaultBulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
(package private) static void |
Weight.DefaultBulkScorer.scoreAll(LeafCollector collector,
DocIdSetIterator iterator,
TwoPhaseIterator twoPhase,
Bits acceptDocs)
Specialized method to bulk-score all hits; we
separate this from
Weight.DefaultBulkScorer.scoreRange(org.apache.lucene.search.LeafCollector, org.apache.lucene.search.DocIdSetIterator, org.apache.lucene.search.TwoPhaseIterator, org.apache.lucene.util.Bits, int, int) to help out
hotspot. |
(package private) static int |
Weight.DefaultBulkScorer.scoreRange(LeafCollector collector,
DocIdSetIterator iterator,
TwoPhaseIterator twoPhase,
Bits acceptDocs,
int currentDoc,
int end)
Specialized method to bulk-score a range of hits; we
separate this from
Weight.DefaultBulkScorer.scoreAll(org.apache.lucene.search.LeafCollector, org.apache.lucene.search.DocIdSetIterator, org.apache.lucene.search.TwoPhaseIterator, org.apache.lucene.util.Bits) to help out
hotspot. |
private BooleanScorer.BulkScorerAndDoc |
BooleanScorer.scoreWindow(BooleanScorer.BulkScorerAndDoc top,
LeafCollector collector,
LeafCollector singleClauseCollector,
Bits acceptDocs,
int min,
int max) |
private void |
BooleanScorer.scoreWindowIntoBitSetAndReplay(LeafCollector collector,
Bits acceptDocs,
int base,
int min,
int max,
BooleanScorer.BulkScorerAndDoc[] scorers,
int numScorers) |
private void |
BooleanScorer.scoreWindowMultipleScorers(LeafCollector collector,
Bits acceptDocs,
int windowBase,
int windowMin,
int windowMax,
int maxFreq) |
private void |
BooleanScorer.scoreWindowSingleScorer(BooleanScorer.BulkScorerAndDoc bulkScorer,
LeafCollector collector,
LeafCollector singleClauseCollector,
Bits acceptDocs,
int windowMin,
int windowMax,
int max) |
Constructor and Description |
---|
DocValuesDocIdSet(int maxDoc,
Bits acceptDocs) |
Modifier and Type | Field and Description |
---|---|
private Bits |
GroupingSearch.matchingGroupHeads |
Modifier and Type | Method and Description |
---|---|
Bits |
GroupingSearch.getAllGroupHeads()
Returns the matching group heads if
GroupingSearch.setAllGroupHeads(boolean) was set to true or an empty bit set. |
Modifier and Type | Method and Description |
---|---|
Bits |
TermVectorLeafReader.getDocsWithField(java.lang.String field) |
Bits |
WeightedSpanTermExtractor.DelegatingLeafReader.getDocsWithField(java.lang.String field) |
Bits |
TermVectorLeafReader.getLiveDocs() |
Modifier and Type | Method and Description |
---|---|
static Bits |
BlockJoinSelector.wrap(Bits docsWithValue,
BitSet parents,
BitSet children)
Return a
Bits instance that returns true if, and only if, any of
the children of the given parent document has a value. |
Modifier and Type | Method and Description |
---|---|
static Bits |
BlockJoinSelector.wrap(Bits docsWithValue,
BitSet parents,
BitSet children)
Return a
Bits instance that returns true if, and only if, any of
the children of the given parent document has a value. |
static NumericDocValues |
BlockJoinSelector.wrap(NumericDocValues values,
Bits docsWithValue,
BlockJoinSelector.Type selection,
BitSet parents,
BitSet children)
Wraps the provided
NumericDocValues in order to only select
one value per parent among its children using the configured
selection type. |
Modifier and Type | Field and Description |
---|---|
(package private) Bits |
FieldCacheImpl.BitsEntry.bits |
Bits |
FieldCacheImpl.Uninvert.docsWithField |
Modifier and Type | Method and Description |
---|---|
Bits |
FieldCache.getDocsWithField(LeafReader reader,
java.lang.String field,
FieldCache.Parser parser)
Checks the internal cache for an appropriate entry, and if none is found,
reads the terms/points in
field and returns a bit set at the size of
reader.maxDoc() , with turned on bits for each docid that
does have a value for this field. |
Bits |
FieldCacheImpl.getDocsWithField(LeafReader reader,
java.lang.String field,
FieldCache.Parser parser) |
Bits |
UninvertingReader.getDocsWithField(java.lang.String field)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
FieldCacheImpl.setDocsWithField(LeafReader reader,
java.lang.String field,
Bits docsWithField,
FieldCache.Parser parser) |
protected void |
DocTermOrds.uninvert(LeafReader reader,
Bits liveDocs,
BytesRef termPrefix)
Deprecated.
Call this only once (if you subclass!)
|
Constructor and Description |
---|
BitsEntry(Bits bits) |
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field)
Deprecated.
Inverts all terms
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field,
BytesRef termPrefix)
Deprecated.
Inverts only terms starting w/ prefix
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field,
BytesRef termPrefix,
int maxTermDocFreq)
Deprecated.
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
java.lang.String field,
BytesRef termPrefix,
int maxTermDocFreq,
int indexIntervalBits)
Deprecated.
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq, with a custom indexing interval
(default is every 128nd term).
|
Modifier and Type | Interface and Description |
---|---|
interface |
MutableBits
Extension of Bits for live documents.
|
Modifier and Type | Class and Description |
---|---|
static class |
Bits.MatchAllBits
Bits impl of the specified length with all bits set.
|
static class |
Bits.MatchNoBits
Bits impl of the specified length with no bits set.
|
class |
BitSet
Base implementation for a bit set.
|
class |
FixedBitSet
BitSet of fixed length (numBits), backed by accessible (
FixedBitSet.getBits() )
long[], accessed with an int index, implementing Bits and
DocIdSet . |
class |
SparseFixedBitSet
A bit set that only stores longs that have at least one bit which is set.
|
Modifier and Type | Field and Description |
---|---|
static Bits[] |
Bits.EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
Bits |
NotDocIdSet.bits() |