Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
LeafReaderContext |
LeafReader.getContext() |
Modifier and Type | Method and Description |
---|---|
List<LeafReaderContext> |
LeafReaderContext.leaves() |
abstract List<LeafReaderContext> |
IndexReaderContext.leaves()
Returns the context's leaves if this context is a top-level context.
|
List<LeafReaderContext> |
IndexReader.leaves()
Returns the reader's leaves, or itself if this reader is atomic.
|
List<LeafReaderContext> |
CompositeReaderContext.leaves() |
Modifier and Type | Method and Description |
---|---|
static int |
ReaderUtil.subIndex(int n,
List<LeafReaderContext> leaves)
Returns index of the searcher/reader for document
n in the
array used to construct this searcher/reader. |
Modifier and Type | Field and Description |
---|---|
protected List<LeafReaderContext> |
IndexSearcher.leafContexts |
Modifier and Type | Method and Description |
---|---|
BulkScorer |
Weight.bulkScorer(LeafReaderContext context,
Bits acceptDocs)
Optional method, to return a
BulkScorer to
score the query and send hits to a Collector . |
BulkScorer |
BooleanWeight.bulkScorer(LeafReaderContext context,
Bits acceptDocs) |
protected abstract void |
SimpleFieldComparator.doSetNextReader(LeafReaderContext context)
This method is called before collecting
context . |
protected void |
SimpleCollector.doSetNextReader(LeafReaderContext context)
This method is called before collecting
context . |
protected void |
FieldComparator.NumericComparator.doSetNextReader(LeafReaderContext context) |
abstract Explanation |
Weight.explain(LeafReaderContext context,
int doc)
An explanation of the score computation for the named document.
|
Explanation |
DisjunctionMaxQuery.DisjunctionMaxWeight.explain(LeafReaderContext context,
int doc)
Explain the score we computed for doc
|
Explanation |
ConstantScoreWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
BooleanWeight.explain(LeafReaderContext context,
int doc) |
BulkScorer |
FilteredQuery.FilterStrategy.filteredBulkScorer(LeafReaderContext context,
Weight weight,
DocIdSet docIdSet)
Returns a filtered
BulkScorer based on this
strategy. |
abstract Scorer |
FilteredQuery.FilterStrategy.filteredScorer(LeafReaderContext context,
Weight weight,
DocIdSet docIdSet)
Returns a filtered
Scorer based on this strategy. |
Scorer |
FilteredQuery.RandomAccessFilterStrategy.filteredScorer(LeafReaderContext context,
Weight weight,
DocIdSet docIdSet) |
protected BinaryDocValues |
FieldComparator.TermValComparator.getBinaryDocValues(LeafReaderContext context,
String field)
Retrieves the BinaryDocValues for the field in this segment
|
LeafFieldComparator[] |
FieldValueHitQueue.getComparators(LeafReaderContext context) |
DocIdSet |
QueryWrapperFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs) |
DocIdSet |
MultiTermQueryWrapperFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
Returns a DocIdSet with documents that should be permitted in search
results.
|
abstract DocIdSet |
Filter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Creates a
DocIdSet enumerating the documents that should be
permitted in search results. |
DocIdSet |
FieldValueFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
|
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
|
abstract DocIdSet |
DocTermOrdsRangeFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
This method is implemented for each data type
|
DocIdSet |
CachingWrapperFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
Deprecated.
|
protected Bits |
FieldComparator.TermValComparator.getDocsWithField(LeafReaderContext context,
String field)
Retrieves the set of documents that have a value in this segment
|
LeafCollector |
TimeLimitingCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
SimpleCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
PositiveScoresOnlyCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
MultiCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
FilterCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
Collector.getLeafCollector(LeafReaderContext context)
Create a new
collector to collect the given context. |
LeafFieldComparator |
SimpleFieldComparator.getLeafComparator(LeafReaderContext context) |
abstract LeafFieldComparator |
FieldComparator.getLeafComparator(LeafReaderContext context)
Get a per-segment
LeafFieldComparator to collect the given
LeafReaderContext . |
LeafFieldComparator |
FieldComparator.RelevanceComparator.getLeafComparator(LeafReaderContext context) |
LeafFieldComparator |
FieldComparator.DocComparator.getLeafComparator(LeafReaderContext context) |
LeafFieldComparator |
FieldComparator.TermOrdValComparator.getLeafComparator(LeafReaderContext context) |
LeafFieldComparator |
FieldComparator.TermValComparator.getLeafComparator(LeafReaderContext context) |
protected abstract Bits |
RandomAccessWeight.getMatchingDocs(LeafReaderContext context)
Return a
Bits instance representing documents that match this
weight on the given context. |
protected NumericDocValues |
FieldComparator.NumericComparator.getNumericDocValues(LeafReaderContext context,
String field)
Retrieves the NumericDocValues for the field in this segment
|
protected SortedDocValues |
FieldComparator.TermOrdValComparator.getSortedDocValues(LeafReaderContext context,
String field)
Retrieves the SortedDocValues for the field in this segment
|
abstract Scorer |
Weight.scorer(LeafReaderContext context,
Bits acceptDocs)
Returns a
Scorer which scores documents in/out-of order according
to scoreDocsInOrder . |
Scorer |
RandomAccessWeight.scorer(LeafReaderContext context,
Bits acceptDocs) |
Scorer |
DisjunctionMaxQuery.DisjunctionMaxWeight.scorer(LeafReaderContext context,
Bits acceptDocs)
Create the scorer used to score our associated DisjunctionMaxQuery
|
Scorer |
BooleanWeight.scorer(LeafReaderContext context,
Bits acceptDocs) |
boolean |
UsageTrackingFilterCachingPolicy.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set) |
boolean |
FilterCachingPolicy.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set)
Deprecated.
Whether the given
DocIdSet should be cached on a given segment. |
boolean |
FilterCachingPolicy.CacheOnLargeSegments.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set) |
boolean |
UsageTrackingQueryCachingPolicy.shouldCache(Query query,
LeafReaderContext context) |
boolean |
QueryCachingPolicy.shouldCache(Query query,
LeafReaderContext context)
Whether the given
DocIdSet should be cached on a given segment. |
boolean |
QueryCachingPolicy.CacheOnLargeSegments.shouldCache(Query query,
LeafReaderContext context) |
Modifier and Type | Method and Description |
---|---|
protected void |
IndexSearcher.search(List<LeafReaderContext> leaves,
Weight weight,
Collector collector)
Lower-level search API.
|
protected IndexSearcher.LeafSlice[] |
IndexSearcher.slices(List<LeafReaderContext> leaves)
Expert: Creates an array of leaf slices each holding a subset of the given leaves.
|
Constructor and Description |
---|
IndexSearcher.LeafSlice(LeafReaderContext... leaves) |
Modifier and Type | Method and Description |
---|---|
Explanation |
PayloadTermQuery.PayloadTermWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
PayloadNearQuery.PayloadNearSpanWeight.explain(LeafReaderContext context,
int doc) |
PayloadTermQuery.PayloadTermWeight.PayloadTermSpanScorer |
PayloadTermQuery.PayloadTermWeight.scorer(LeafReaderContext context,
Bits acceptDocs) |
Scorer |
PayloadNearQuery.PayloadNearSpanWeight.scorer(LeafReaderContext context,
Bits acceptDocs) |
Modifier and Type | Method and Description |
---|---|
Similarity.SimScorer |
TFIDFSimilarity.simScorer(Similarity.SimWeight stats,
LeafReaderContext context) |
Similarity.SimScorer |
SimilarityBase.simScorer(Similarity.SimWeight stats,
LeafReaderContext context) |
abstract Similarity.SimScorer |
Similarity.simScorer(Similarity.SimWeight weight,
LeafReaderContext context)
Creates a new
Similarity.SimScorer to score matching documents from a segment of the inverted index. |
Similarity.SimScorer |
PerFieldSimilarityWrapper.simScorer(Similarity.SimWeight weight,
LeafReaderContext context) |
Similarity.SimScorer |
MultiSimilarity.simScorer(Similarity.SimWeight stats,
LeafReaderContext context) |
Similarity.SimScorer |
BM25Similarity.simScorer(Similarity.SimWeight stats,
LeafReaderContext context) |
Modifier and Type | Method and Description |
---|---|
Explanation |
SpanWeight.explain(LeafReaderContext context,
int doc) |
Spans |
SpanWithinQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts)
Return spans from
little that are contained in a spans from big . |
Spans |
SpanTermQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
abstract Spans |
SpanQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts)
Expert: Returns the matches for this query in an index.
|
Spans |
SpanPositionCheckQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
Spans |
SpanOrQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
Spans |
SpanNotQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
Spans |
SpanNearQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
Spans |
SpanMultiTermQueryWrapper.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
Spans |
SpanContainingQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts)
Return spans from
big that contain at least one spans from little . |
Spans |
FieldMaskingSpanQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
Scorer |
SpanWeight.scorer(LeafReaderContext context,
Bits acceptDocs) |
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.