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.lucene40 |
Lucene 4.0 file format.
|
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.simpletext |
Simpletext Codec: writes human readable postings.
|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.queries |
Filters and Queries that add to core Lucene.
|
org.apache.lucene.sandbox.queries |
Additional queries (some may have caveats or limitations)
|
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.search.suggest |
Support for Autocomplete/Autosuggest
|
org.apache.lucene.search.suggest.document |
Support for document suggestion
|
org.apache.lucene.spatial.prefix |
Prefix Tree Strategy.
|
org.apache.lucene.spatial.util |
Various spatial utilities.
|
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 | 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,
List<BinaryDocValues> toMerge,
List<Bits> docsWithField)
Merges the binary docvalues from
toMerge . |
void |
DocValuesConsumer.mergeNumericField(FieldInfo fieldInfo,
MergeState mergeState,
List<NumericDocValues> toMerge,
List<Bits> docsWithField)
Merges the numeric docvalues from
toMerge . |
Modifier and Type | Method and Description |
---|---|
Bits |
AssertingLiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
MutableBits |
AssertingLiveDocsFormat.newLiveDocs(Bits existing) |
Modifier and Type | Method and Description |
---|---|
Bits |
Lucene40LiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
MutableBits |
Lucene40LiveDocsFormat.newLiveDocs(Bits existing)
Deprecated.
|
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 | Method and Description |
---|---|
Bits |
SimpleTextLiveDocsFormat.readLiveDocs(Directory dir,
SegmentCommitInfo info,
IOContext context) |
Modifier and Type | Method and Description |
---|---|
MutableBits |
SimpleTextLiveDocsFormat.newLiveDocs(Bits existing) |
Modifier and Type | Class and Description |
---|---|
static class |
AssertingLeafReader.AssertingBits
Wraps a Bits but with additional asserts
|
Modifier and Type | Field and Description |
---|---|
protected Bits[] |
PerThreadPKLookup.liveDocs |
Bits[] |
MergeState.liveDocs
Live docs for each reader
|
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. |
static Bits |
MultiDocValues.getDocsWithField(IndexReader r,
String field)
Returns a Bits for a reader's docsWithField (potentially merging on-the-fly)
|
static Bits |
DocValues.getDocsWithField(LeafReader reader,
String field)
Returns Bits for the field, or
Bits matching nothing if it has none. |
Bits |
SortingLeafReader.getDocsWithField(String field) |
Bits |
AssertingLeafReader.getDocsWithField(String field) |
Bits |
FieldFilterLeafReader.getDocsWithField(String field) |
Bits |
CodecReader.getDocsWithField(String field) |
Bits |
ParallelLeafReader.getDocsWithField(String field) |
Bits |
FilterLeafReader.getDocsWithField(String field) |
abstract Bits |
LeafReader.getDocsWithField(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 |
SlowCompositeReaderWrapper.getDocsWithField(String field) |
Bits |
SortingLeafReader.getLiveDocs() |
Bits |
AssertingLeafReader.getLiveDocs() |
Bits |
AllDeletedFilterReader.getLiveDocs() |
Bits |
ParallelLeafReader.getLiveDocs() |
Bits |
FilterCodecReader.getLiveDocs() |
Bits |
FilterLeafReader.getLiveDocs() |
abstract Bits |
LeafReader.getLiveDocs()
Returns the
Bits representing live (not
deleted) docs. |
Bits |
SlowCompositeReaderWrapper.getLiveDocs() |
Bits |
SegmentReader.getLiveDocs() |
static Bits |
MultiFields.getLiveDocs(IndexReader reader)
Returns a single
Bits instance for this
reader, merging live Documents on the
fly. |
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 |
---|---|
DocsEnum |
TermsEnum.docs(Bits liveDocs,
DocsEnum reuse)
Deprecated.
Use
TermsEnum.postings(PostingsEnum) instead |
DocsEnum |
TermsEnum.docs(Bits liveDocs,
DocsEnum reuse,
int flags)
Deprecated.
Use
TermsEnum.postings(PostingsEnum, int) instead |
DocsAndPositionsEnum |
TermsEnum.docsAndPositions(Bits liveDocs,
DocsAndPositionsEnum reuse)
Deprecated.
Use
TermsEnum.postings(PostingsEnum, int) instead |
DocsAndPositionsEnum |
TermsEnum.docsAndPositions(Bits liveDocs,
DocsAndPositionsEnum reuse,
int flags)
Deprecated.
Use
TermsEnum.postings(PostingsEnum, int) instead |
static SortedNumericDocValues |
DocValues.singleton(NumericDocValues dv,
Bits docsWithField)
Returns a multi-valued view over the provided NumericDocValues
|
Constructor and Description |
---|
AssertingBits(Bits in) |
Modifier and Type | Method and Description |
---|---|
DocIdSet |
BooleanFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
Returns the a DocIdSetIterator representing the Boolean composition
of the filters that have been added.
|
DocIdSet |
TermsFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
DocIdSet |
DuplicateFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
|
Modifier and Type | Field and Description |
---|---|
protected Bits |
DocValuesDocIdSet.acceptDocs |
protected Bits |
FieldComparator.NumericComparator.docsWithField |
Modifier and Type | Method and Description |
---|---|
Bits |
FilteredDocIdSet.bits() |
Bits |
DocValuesDocIdSet.bits() |
Bits |
DocIdSet.bits()
Optionally provides a
Bits interface for random access
to matching documents. |
protected Bits |
FieldComparator.TermValComparator.getDocsWithField(LeafReaderContext context,
String field)
Retrieves the set of documents that have a value in this segment
|
protected Bits |
FieldComparator.NumericComparator.getDocsWithValue(LeafReaderContext context,
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 |
---|---|
abstract DocIdSet |
DocTermOrdsRangeFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
This method is implemented for each data type
|
DocIdSet |
DocValuesTermsFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
|
abstract DocIdSet |
DocValuesRangeFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
This method is implemented for each data type
|
DocIdSet |
QueryWrapperFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs) |
DocIdSet |
FieldValueFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
|
abstract DocIdSet |
Filter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Creates a
DocIdSet enumerating the documents that should be
permitted in search results. |
DocIdSet |
MultiTermQueryWrapperFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
Returns a DocIdSet with documents that should be permitted in search
results.
|
DocIdSet |
CachingWrapperFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
|
void |
BulkScorer.score(LeafCollector collector,
Bits acceptDocs)
Scores and collects all matching documents.
|
int |
ConstantScoreQuery.ConstantBulkScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
int |
Weight.DefaultBulkScorer.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 . |
protected boolean |
FilteredQuery.RandomAccessFilterStrategy.useRandomAccess(Bits bits,
long filterCost)
Expert: decides if a filter should be executed as "random-access" or not.
|
static DocIdSet |
BitsFilteredDocIdSet.wrap(DocIdSet set,
Bits acceptDocs)
Convenience wrapper method: If
acceptDocs == null it returns the original set without wrapping. |
Constructor and Description |
---|
BitsFilteredDocIdSet(DocIdSet innerSet,
Bits acceptDocs)
Constructor.
|
DocValuesDocIdSet(int maxDoc,
Bits acceptDocs) |
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(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 |
---|---|
DocIdSet |
BitDocIdSetFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
|
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 | Method and Description |
---|---|
abstract Bits |
BitsProducer.getBits(LeafReaderContext context)
Return
Bits for the given leaf. |
Modifier and Type | Method and Description |
---|---|
boolean |
CompletionScorer.accept(int docID,
Bits liveDocs)
Returns true if a document with
docID is accepted,
false if the docID maps to a deleted
document or has been filtered out |
void |
NRTSuggester.lookup(CompletionScorer scorer,
Bits acceptDocs,
TopSuggestDocsCollector collector)
Collects at most
TopSuggestDocsCollector.getCountToCollect() completions that
match the provided CompletionScorer . |
int |
CompletionScorer.score(LeafCollector collector,
Bits acceptDocs,
int min,
int max) |
Constructor and Description |
---|
CompletionScorer(CompletionWeight weight,
NRTSuggester suggester,
LeafReader reader,
Bits filterDocs,
boolean filtered,
Automaton automaton)
Creates a scorer for a field-specific
suggester scoped by acceptDocs |
Modifier and Type | Field and Description |
---|---|
protected Bits |
AbstractPrefixTreeFilter.BaseTermsEnumTraverser.acceptDocs |
Modifier and Type | Method and Description |
---|---|
static void |
PrefixTreeFacetCounter.compute(PrefixTreeStrategy strategy,
LeafReaderContext context,
Bits acceptDocs,
com.spatial4j.core.shape.Shape queryShape,
int facetLevel,
PrefixTreeFacetCounter.FacetVisitor facetVisitor)
Lower-level per-leaf segment method.
|
DocIdSet |
IntersectsPrefixTreeFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs) |
DocIdSet |
ContainsPrefixTreeFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs) |
DocIdSet |
WithinPrefixTreeFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs) |
Constructor and Description |
---|
BaseTermsEnumTraverser(LeafReaderContext context,
Bits acceptDocs) |
VisitorTemplate(LeafReaderContext context,
Bits acceptDocs) |
Modifier and Type | Method and Description |
---|---|
DocIdSet |
ValueSourceFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs) |
Modifier and Type | Method and Description |
---|---|
Bits |
UninvertingReader.getDocsWithField(String field) |
Modifier and Type | Method and Description |
---|---|
protected void |
DocTermOrds.uninvert(LeafReader reader,
Bits liveDocs,
BytesRef termPrefix)
Call this only once (if you subclass!)
|
Constructor and Description |
---|
DocTermOrds(LeafReader reader,
Bits liveDocs,
String field)
Inverts all terms
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
String field,
BytesRef termPrefix)
Inverts only terms starting w/ prefix
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
String field,
BytesRef termPrefix,
int maxTermDocFreq)
Inverts only terms starting w/ prefix, and only terms
whose docFreq (not taking deletions into account) is
<= maxTermDocFreq
|
DocTermOrds(LeafReader reader,
Bits liveDocs,
String field,
BytesRef termPrefix,
int maxTermDocFreq,
int indexIntervalBits)
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() |
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.