Uses of Interface
org.apache.lucene.util.Bits
Packages that use Bits
Package
Description
Utility functions for text analysis.
Lucene 5.0 file format.
Lucene 9.0 file format.
Lucene 9.1 file format.
Lucene 9.2 file format.
Lucene 9.4 file format.
Lucene 9.5 file format.
Codecs API: API for customization of the encoding and structure of the index.
Lucene 9.0 file format.
Lucene 9.5 file format.
Lucene 9.9 file format.
Postings format that can delegate to different formats per-field.
Simpletext Codec: writes human readable postings.
Code to maintain and access indices.
High-performance single-document main memory Apache Lucene fulltext search index.
Misc index tools and index support.
A primary-key postings format that associates a version (long) with each term and can provide
fail-fast lookups by ID and version.
This package contains several point types:
BigIntegerPoint
for 128-bit
integers
LatLonPoint
for latitude/longitude
geospatial points
This package contains a flexible graph-based proximity query, TermAutomatonQuery, and geospatial
queries.
Code to search indices.
Grouping.
Highlighting search terms.
Support for index-time and query-time joins.
Support for Autocomplete/Autosuggest
Support for document suggestion
Some utility classes.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of Bits in org.apache.lucene.analysis.util
Fields in org.apache.lucene.analysis.util declared as BitsModifier and TypeFieldDescriptionstatic final Bits
UnicodeProps.WHITESPACE
Bitset with Unicode WHITESPACE code points.Methods in org.apache.lucene.analysis.util that return Bits -
Uses of Bits in org.apache.lucene.backward_codecs.lucene50
Methods in org.apache.lucene.backward_codecs.lucene50 that return BitsModifier and TypeMethodDescriptionLucene50LiveDocsFormat.readLiveDocs
(Directory dir, SegmentCommitInfo info, IOContext context) Methods in org.apache.lucene.backward_codecs.lucene50 with parameters of type BitsModifier and TypeMethodDescriptionprivate int
Lucene50LiveDocsFormat.writeBits
(IndexOutput output, Bits bits) void
Lucene50LiveDocsFormat.writeLiveDocs
(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) Note: although this format is only used on older versions, we need to keep the write logic in addition to the read logic. -
Uses of Bits in org.apache.lucene.backward_codecs.lucene90
Methods in org.apache.lucene.backward_codecs.lucene90 that return BitsModifier and TypeMethodDescriptionprivate Bits
Lucene90HnswVectorsReader.getAcceptOrds
(Bits acceptDocs, Lucene90HnswVectorsReader.FieldEntry fieldEntry) Methods in org.apache.lucene.backward_codecs.lucene90 with parameters of type BitsModifier and TypeMethodDescriptionprivate Bits
Lucene90HnswVectorsReader.getAcceptOrds
(Bits acceptDocs, Lucene90HnswVectorsReader.FieldEntry fieldEntry) void
Lucene90HnswVectorsReader.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
Lucene90HnswVectorsReader.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) static NeighborQueue
Lucene90OnHeapHnswGraph.search
(float[] query, int topK, int numSeed, RandomAccessVectorValues<float[]> vectors, VectorSimilarityFunction similarityFunction, HnswGraph graphValues, Bits acceptOrds, long visitedLimit, SplittableRandom random) Searches for the nearest neighbors of a query vector. -
Uses of Bits in org.apache.lucene.backward_codecs.lucene91
Methods in org.apache.lucene.backward_codecs.lucene91 that return BitsModifier and TypeMethodDescriptionprivate Bits
Lucene91HnswVectorsReader.getAcceptOrds
(Bits acceptDocs, Lucene91HnswVectorsReader.FieldEntry fieldEntry) Methods in org.apache.lucene.backward_codecs.lucene91 with parameters of type BitsModifier and TypeMethodDescriptionprivate Bits
Lucene91HnswVectorsReader.getAcceptOrds
(Bits acceptDocs, Lucene91HnswVectorsReader.FieldEntry fieldEntry) void
Lucene91HnswVectorsReader.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
Lucene91HnswVectorsReader.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.backward_codecs.lucene92
Methods in org.apache.lucene.backward_codecs.lucene92 that return BitsModifier and TypeMethodDescriptionOffHeapFloatVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) Methods in org.apache.lucene.backward_codecs.lucene92 with parameters of type BitsModifier and TypeMethodDescriptionOffHeapFloatVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) void
Lucene92HnswVectorsReader.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
Lucene92HnswVectorsReader.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.backward_codecs.lucene94
Methods in org.apache.lucene.backward_codecs.lucene94 that return BitsModifier and TypeMethodDescriptionOffHeapByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapByteVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapByteVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) Methods in org.apache.lucene.backward_codecs.lucene94 with parameters of type BitsModifier and TypeMethodDescriptionOffHeapByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapByteVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapByteVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) void
Lucene94HnswVectorsReader.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
Lucene94HnswVectorsReader.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.backward_codecs.lucene95
Methods in org.apache.lucene.backward_codecs.lucene95 with parameters of type BitsModifier and TypeMethodDescriptionvoid
Lucene95HnswVectorsReader.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
Lucene95HnswVectorsReader.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.codecs
Methods in org.apache.lucene.codecs that return BitsModifier and TypeMethodDescriptionabstract Bits
LiveDocsFormat.readLiveDocs
(Directory dir, SegmentCommitInfo info, IOContext context) Read live docs bits.Methods in org.apache.lucene.codecs with parameters of type BitsModifier and TypeMethodDescriptionabstract void
KnnVectorsReader.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract void
KnnVectorsReader.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract void
LiveDocsFormat.writeLiveDocs
(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) Persist live docs bits. -
Uses of Bits in org.apache.lucene.codecs.lucene90
Methods in org.apache.lucene.codecs.lucene90 that return BitsModifier and TypeMethodDescriptionLucene90LiveDocsFormat.readLiveDocs
(Directory dir, SegmentCommitInfo info, IOContext context) Methods in org.apache.lucene.codecs.lucene90 with parameters of type BitsModifier and TypeMethodDescriptionprivate int
Lucene90LiveDocsFormat.writeBits
(IndexOutput output, Bits bits) void
Lucene90LiveDocsFormat.writeLiveDocs
(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) -
Uses of Bits in org.apache.lucene.codecs.lucene95
Methods in org.apache.lucene.codecs.lucene95 that return BitsModifier and TypeMethodDescriptionOffHeapByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapByteVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapByteVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) Methods in org.apache.lucene.codecs.lucene95 with parameters of type BitsModifier and TypeMethodDescriptionOffHeapByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapByteVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapByteVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapFloatVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) -
Uses of Bits in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 that return BitsModifier and TypeMethodDescriptionOffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapQuantizedByteVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapQuantizedByteVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) Methods in org.apache.lucene.codecs.lucene99 with parameters of type BitsModifier and TypeMethodDescriptionOffHeapQuantizedByteVectorValues.DenseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapQuantizedByteVectorValues.EmptyOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) OffHeapQuantizedByteVectorValues.SparseOffHeapVectorValues.getAcceptOrds
(Bits acceptDocs) void
Lucene99HnswVectorsReader.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
Lucene99HnswVectorsReader.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.codecs.perfield
Methods in org.apache.lucene.codecs.perfield with parameters of type BitsModifier and TypeMethodDescriptionvoid
PerFieldKnnVectorsFormat.FieldsReader.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
PerFieldKnnVectorsFormat.FieldsReader.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.codecs.simpletext
Classes in org.apache.lucene.codecs.simpletext that implement BitsModifier and TypeClassDescription(package private) static class
Methods in org.apache.lucene.codecs.simpletext that return BitsModifier and TypeMethodDescriptionSimpleTextLiveDocsFormat.readLiveDocs
(Directory dir, SegmentCommitInfo info, IOContext context) Methods in org.apache.lucene.codecs.simpletext with parameters of type BitsModifier and TypeMethodDescriptionvoid
SimpleTextKnnVectorsReader.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
SimpleTextKnnVectorsReader.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) void
SimpleTextLiveDocsFormat.writeLiveDocs
(Bits bits, Directory dir, SegmentCommitInfo info, int newDelCount, IOContext context) -
Uses of Bits in org.apache.lucene.index
Classes in org.apache.lucene.index that implement BitsModifier and TypeClassDescription(package private) final class
Exposes a slice of an existing Bits as a new Bits.final class
Concatenates multiple Bits together, on every lookup.private static class
Fields in org.apache.lucene.index declared as BitsModifier and TypeFieldDescription(package private) final Bits
MergePolicy.MergeReader.hardLiveDocs
private final Bits
SegmentReader.hardLiveDocs
private final Bits
SortingCodecReader.SortingBits.in
final Bits[]
MergeState.liveDocs
Live docs for each reader(package private) final Bits
MultiSorter.LeafAndDocID.liveDocs
private Bits
PendingDeletes.liveDocs
private final Bits
SegmentReader.liveDocs
private final Bits
SlowCompositeCodecReaderWrapper.liveDocs
private final Bits
BitsSlice.parent
private final Bits[]
MultiBits.subs
private final Bits
FieldUpdatesBuffer.BufferedUpdateIterator.updatesWithValue
Methods in org.apache.lucene.index that return BitsModifier and TypeMethodDescription(package private) Bits
PendingDeletes.getHardLiveDocs()
Returns a snapshot of the hard live docs.(package private) Bits
PendingSoftDeletes.getHardLiveDocs()
ReadersAndUpdates.getHardLiveDocs()
Returns the live-docs bits excluding documents that are not live due to soft-deletesSegmentReader.getHardLiveDocs()
Returns the live docs that are not hard-deleted.final Bits
DocValuesLeafReader.getLiveDocs()
FilterCodecReader.getLiveDocs()
FilterLeafReader.getLiveDocs()
abstract Bits
LeafReader.getLiveDocs()
Returns theBits
representing live (not deleted) docs.static Bits
MultiBits.getLiveDocs
(IndexReader reader) Returns a singleBits
instance for this reader, merging live Documents on the fly.ParallelLeafReader.getLiveDocs()
(package private) Bits
PendingDeletes.getLiveDocs()
Returns a snapshot of the current live docs.ReadersAndUpdates.getLiveDocs()
Returns a snapshot of the live docs.SegmentReader.getLiveDocs()
SlowCompositeCodecReaderWrapper.getLiveDocs()
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterCodecReader.getLiveDocs()
SoftDeletesDirectoryReaderWrapper.SoftDeletesFilterLeafReader.getLiveDocs()
SortingCodecReader.getLiveDocs()
Methods in org.apache.lucene.index with parameters of type BitsModifier and TypeMethodDescriptionprivate boolean
PendingDeletes.assertCheckLiveDocs
(Bits bits, int expectedLength, int expectedDeleteCount) private static boolean
SegmentReader.assertLiveDocs
(boolean isNRT, Bits hardLiveDocs, Bits liveDocs) private static void
IndexWriter.carryOverHardDeletes
(ReadersAndUpdates mergedReadersAndUpdates, int maxDoc, Bits prevHardLiveDocs, Bits currentHardLiveDocs, MergeState.DocMap segDocMap) This method carries over hard-deleted documents that are applied to the source segment during a merge.private static CheckIndex.Status.TermIndexStatus
CheckIndex.checkFields
(Fields fields, Bits liveDocs, int maxDoc, FieldInfos fieldInfos, NormsProducer normsProducer, boolean doPrint, boolean isVectors, PrintStream infoStream, boolean verbose, boolean doSlowChecks) checks Fields api is consistent with itself.private void
IndexWriter.countSoftDeletes
(CodecReader reader, Bits wrappedLiveDocs, Bits hardLiveDocs, Counter softDeleteCounter, Counter hardDeleteCounter) (package private) static int
PendingSoftDeletes.countSoftDeletes
(DocIdSetIterator softDeletedDocs, Bits hardDeletes) (package private) static PackedLongValues
MergeState.removeDeletes
(int maxDoc, Bits liveDocs) void
SlowCompositeCodecReaderWrapper.SlowCompositeKnnVectorsReaderWrapper.search
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
SlowCompositeCodecReaderWrapper.SlowCompositeKnnVectorsReaderWrapper.search
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) final void
CodecReader.searchNearestVectors
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) final void
CodecReader.searchNearestVectors
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) void
DocValuesLeafReader.searchNearestVectors
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
DocValuesLeafReader.searchNearestVectors
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) void
ExitableDirectoryReader.ExitableFilterAtomicReader.searchNearestVectors
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
ExitableDirectoryReader.ExitableFilterAtomicReader.searchNearestVectors
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) void
FilterLeafReader.searchNearestVectors
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
FilterLeafReader.searchNearestVectors
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) final TopDocs
LeafReader.searchNearestVectors
(String field, byte[] target, int k, Bits acceptDocs, int visitedLimit) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract void
LeafReader.searchNearestVectors
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.final TopDocs
LeafReader.searchNearestVectors
(String field, float[] target, int k, Bits acceptDocs, int visitedLimit) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.abstract void
LeafReader.searchNearestVectors
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) Return the k nearest neighbor documents as determined by comparison of their vector values for this field, to the given vector, by the field's similarity function.void
ParallelLeafReader.searchNearestVectors
(String fieldName, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
ParallelLeafReader.searchNearestVectors
(String fieldName, float[] target, KnnCollector knnCollector, Bits acceptDocs) private FixedBitSet
DocumentsWriterPerThread.sortLiveDocs
(Bits liveDocs, Sorter.DocMap sortMap) (package private) static FilterCodecReader
FilterCodecReader.wrapLiveDocs
(CodecReader reader, Bits liveDocs, int numDocs) Returns a filtered codec reader with the given live docs and numDocs.Constructors in org.apache.lucene.index with parameters of type BitsModifierConstructorDescriptionBitsSlice
(Bits parent, ReaderSlice slice) LeafAndDocID
(int readerIndex, Bits liveDocs, int maxDoc, int numComparables) (package private)
MergeReader
(CodecReader reader, Bits hardLiveDocs) (package private)
MergeReader
(SegmentReader reader, Bits hardLiveDocs) private
(package private)
PendingDeletes
(SegmentCommitInfo info, Bits liveDocs, boolean liveDocsInitialized) (package private)
SegmentReader
(SegmentCommitInfo si, SegmentReader sr, Bits liveDocs, Bits hardLiveDocs, int numDocs, boolean isNRT) Create new SegmentReader sharing core from a previous SegmentReader and using the provided liveDocs, and recording whether those liveDocs were carried in ram (isNRT=true).(package private)
SortingBits
(Bits in, Sorter.DocMap docMap) -
Uses of Bits in org.apache.lucene.index.memory
Methods in org.apache.lucene.index.memory that return BitsMethods in org.apache.lucene.index.memory with parameters of type BitsModifier and TypeMethodDescriptionvoid
MemoryIndex.MemoryIndexReader.searchNearestVectors
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
MemoryIndex.MemoryIndexReader.searchNearestVectors
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.misc.index
Fields in org.apache.lucene.misc.index declared as BitsModifier and TypeFieldDescription(package private) final Bits
PKIndexSplitter.DocumentFilteredLeafIndexReader.liveDocs
Methods in org.apache.lucene.misc.index that return BitsModifier and TypeMethodDescriptionIndexRearranger.DocSelectorFilteredCodecReader.getLiveDocs()
MultiPassIndexSplitter.FakeDeleteLeafIndexReader.getLiveDocs()
PKIndexSplitter.DocumentFilteredLeafIndexReader.getLiveDocs()
-
Uses of Bits in org.apache.lucene.sandbox.codecs.idversion
Fields in org.apache.lucene.sandbox.codecs.idversion declared as BitsConstructors in org.apache.lucene.sandbox.codecs.idversion with parameters of type Bits -
Uses of Bits in org.apache.lucene.sandbox.document
Fields in org.apache.lucene.sandbox.document declared as BitsModifier and TypeFieldDescription(package private) Bits
FloatPointNearestNeighbor.NearestVisitor.curLiveDocs
-
Uses of Bits in org.apache.lucene.sandbox.search
Fields in org.apache.lucene.sandbox.search declared as Bits -
Uses of Bits in org.apache.lucene.search
Methods in org.apache.lucene.search that return BitsModifier and TypeMethodDescriptionDocIdSet.bits()
Optionally provides aBits
interface for random access to matching documents.Methods in org.apache.lucene.search with parameters of type BitsModifier and TypeMethodDescriptionprotected abstract TopDocs
AbstractKnnVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit) protected TopDocs
KnnByteVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit) protected TopDocs
KnnFloatVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit) private BitSet
AbstractKnnVectorQuery.createBitSet
(DocIdSetIterator iterator, Bits liveDocs, int maxDoc) int
BlockMaxConjunctionBulkScorer.score
(LeafCollector collector, Bits acceptDocs, int min, int max) (package private) void
BooleanScorer.BulkScorerAndDoc.score
(LeafCollector collector, Bits acceptDocs, int min, int max) int
BooleanScorer.score
(LeafCollector collector, Bits acceptDocs, int min, int max) void
BulkScorer.score
(LeafCollector collector, Bits acceptDocs) Scores and collects all matching documents.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 aftermax
.int
ConjunctionBulkScorer.score
(LeafCollector collector, Bits acceptDocs, int min, int max) int
ConstantScoreQuery.ConstantBulkScorer.score
(LeafCollector collector, Bits acceptDocs, int min, int max) int
MaxScoreBulkScorer.score
(LeafCollector collector, Bits acceptDocs, int min, int max) int
ReqExclBulkScorer.score
(LeafCollector collector, Bits acceptDocs, int min, int max) int
TimeLimitingBulkScorer.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 fromWeight.DefaultBulkScorer.scoreRange(org.apache.lucene.search.LeafCollector, org.apache.lucene.search.DocIdSetIterator, org.apache.lucene.search.TwoPhaseIterator, org.apache.lucene.search.DocIdSetIterator, org.apache.lucene.util.Bits, int, int)
to help out hotspot.private void
MaxScoreBulkScorer.scoreInnerWindow
(LeafCollector collector, Bits acceptDocs, int max) private void
MaxScoreBulkScorer.scoreInnerWindowAsConjunction
(LeafCollector collector, Bits acceptDocs, int max) private void
MaxScoreBulkScorer.scoreInnerWindowMultipleEssentialClauses
(LeafCollector collector, Bits acceptDocs, int max) private void
MaxScoreBulkScorer.scoreInnerWindowSingleEssentialClause
(LeafCollector collector, Bits acceptDocs, int upTo) (package private) static int
Weight.DefaultBulkScorer.scoreRange
(LeafCollector collector, DocIdSetIterator iterator, TwoPhaseIterator twoPhase, DocIdSetIterator competitiveIterator, Bits acceptDocs, int min, int max) Specialized method to bulk-score a range of hits; we separate this fromWeight.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 void
BlockMaxConjunctionBulkScorer.scoreWindow
(LeafCollector collector, Bits acceptDocs, int min, int max, float maxWindowScore) private BooleanScorer.BulkScorerAndDoc
BooleanScorer.scoreWindow
(BooleanScorer.BulkScorerAndDoc top, LeafCollector collector, 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, Bits acceptDocs, int windowMin, int windowMax, int max) -
Uses of Bits in org.apache.lucene.search.grouping
Fields in org.apache.lucene.search.grouping declared as BitsMethods in org.apache.lucene.search.grouping that return BitsModifier and TypeMethodDescriptionGroupingSearch.getAllGroupHeads()
Returns the matching group heads ifGroupingSearch.setAllGroupHeads(boolean)
was set to true or an empty bit set. -
Uses of Bits in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight that return BitsMethods in org.apache.lucene.search.highlight with parameters of type BitsModifier and TypeMethodDescriptionvoid
TermVectorLeafReader.searchNearestVectors
(String field, byte[] target, KnnCollector knnCollector, Bits acceptDocs) void
TermVectorLeafReader.searchNearestVectors
(String field, float[] target, KnnCollector knnCollector, Bits acceptDocs) -
Uses of Bits in org.apache.lucene.search.join
Methods in org.apache.lucene.search.join that return BitsModifier and TypeMethodDescriptionstatic Bits
Return aBits
instance that returns true if, and only if, any of the children of the given parent document has a value.Methods in org.apache.lucene.search.join with parameters of type BitsModifier and TypeMethodDescriptionprotected TopDocs
DiversifyingChildrenByteKnnVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit) protected TopDocs
DiversifyingChildrenFloatKnnVectorQuery.approximateSearch
(LeafReaderContext context, Bits acceptDocs, int visitedLimit) static Bits
Return aBits
instance that returns true if, and only if, any of the children of the given parent document has a value. -
Uses of Bits in org.apache.lucene.search.suggest
Fields in org.apache.lucene.search.suggest declared as BitsModifier and TypeFieldDescriptionprivate final Bits
DocumentDictionary.DocumentInputIterator.liveDocs
Methods in org.apache.lucene.search.suggest that return BitsModifier and TypeMethodDescriptionabstract Bits
BitsProducer.getBits
(LeafReaderContext context) ReturnBits
for the given leaf. -
Uses of Bits in org.apache.lucene.search.suggest.document
Fields in org.apache.lucene.search.suggest.document declared as BitsMethods in org.apache.lucene.search.suggest.document with parameters of type BitsModifier and TypeMethodDescriptionfinal boolean
Returns true if a document withdocID
is accepted, false if the docID maps to a deleted document or has been filtered outvoid
NRTSuggester.lookup
(CompletionScorer scorer, Bits acceptDocs, TopSuggestDocsCollector collector) Collects at mostTopSuggestDocsCollector.getCountToCollect()
completions that match the providedCompletionScorer
.int
CompletionScorer.score
(LeafCollector collector, Bits acceptDocs, int min, int max) Constructors in org.apache.lucene.search.suggest.document with parameters of type BitsModifierConstructorDescriptionprotected
CompletionScorer
(CompletionWeight weight, NRTSuggester suggester, LeafReader reader, Bits filterDocs, boolean filtered, Automaton automaton) Creates a scorer for a field-specificsuggester
scoped byacceptDocs
-
Uses of Bits in org.apache.lucene.util
Classes in org.apache.lucene.util that implement BitsModifier and TypeClassDescriptionstatic class
Bits impl of the specified length with all bits set.static class
Bits impl of the specified length with no bits set.class
Base implementation for a bit set.(package private) final class
Immutable twin of FixedBitSet.final class
BitSet of fixed length (numBits), backed by accessible (FixedBitSet.getBits()
) long[], accessed with an int index, implementingBits
andDocIdSet
.class
A bit set that only stores longs that have at least one bit which is set.Fields in org.apache.lucene.util declared as BitsMethods in org.apache.lucene.util that return BitsModifier and TypeMethodDescriptionFixedBitSet.asReadOnlyBits()
Convert this instance to read-onlyBits
.NotDocIdSet.bits()
Methods in org.apache.lucene.util with parameters of type Bits -
Uses of Bits in org.apache.lucene.util.hnsw
Methods in org.apache.lucene.util.hnsw that return BitsModifier and TypeMethodDescriptiondefault Bits
RandomAccessVectorValues.getAcceptOrds
(Bits acceptDocs) Returns theBits
representing live documents.RandomVectorScorer.AbstractRandomVectorScorer.getAcceptOrds
(Bits acceptDocs) default Bits
RandomVectorScorer.getAcceptOrds
(Bits acceptDocs) Returns theBits
representing live documents.Methods in org.apache.lucene.util.hnsw with parameters of type BitsModifier and TypeMethodDescriptionHnswGraphMerger.addReader
(KnnVectorsReader reader, MergeState.DocMap docMap, Bits liveDocs) Adds a reader to the graph merger to record the stateIncrementalHnswGraphMerger.addReader
(KnnVectorsReader reader, MergeState.DocMap docMap, Bits liveDocs) Adds a reader to the graph merger if it meets the following criteria: 1.default Bits
RandomAccessVectorValues.getAcceptOrds
(Bits acceptDocs) Returns theBits
representing live documents.RandomVectorScorer.AbstractRandomVectorScorer.getAcceptOrds
(Bits acceptDocs) default Bits
RandomVectorScorer.getAcceptOrds
(Bits acceptDocs) Returns theBits
representing live documents.private static boolean
static KnnCollector
HnswGraphSearcher.search
(RandomVectorScorer scorer, int topK, OnHeapHnswGraph graph, Bits acceptOrds, int visitedLimit) SearchOnHeapHnswGraph
, this method is thread safe.static void
HnswGraphSearcher.search
(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, Bits acceptOrds) Searches HNSW graph for the nearest neighbors of a query vector.private static void
HnswGraphSearcher.search
(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, HnswGraphSearcher graphSearcher, Bits acceptOrds) (package private) void
HnswGraphSearcher.searchLevel
(KnnCollector results, RandomVectorScorer scorer, int level, int[] eps, HnswGraph graph, Bits acceptOrds) Add the closest neighbors found to a priority queue (heap).