Package | Description |
---|---|
org.apache.lucene.index |
Code to maintain and access indices.
|
org.apache.lucene.search |
Code to search indices.
|
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> |
CompositeReaderContext.leaves() |
abstract List<LeafReaderContext> |
IndexReaderContext.leaves()
Returns the context's leaves if this context is a top-level context.
|
List<LeafReaderContext> |
LeafReaderContext.leaves() |
List<LeafReaderContext> |
IndexReader.leaves()
Returns the reader's leaves, or itself if this reader is atomic.
|
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)
Optional method, to return a
BulkScorer to
score the query and send hits to a Collector . |
protected void |
SimpleCollector.doSetNextReader(LeafReaderContext context)
This method is called before collecting
context . |
protected abstract void |
SimpleFieldComparator.doSetNextReader(LeafReaderContext context)
This method is called before collecting
context . |
protected void |
FieldComparator.NumericComparator.doSetNextReader(LeafReaderContext context) |
Explanation |
DisjunctionMaxQuery.DisjunctionMaxWeight.explain(LeafReaderContext context,
int doc)
Explain the score we computed for doc
|
Explanation |
FilterWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
ConstantScoreWeight.explain(LeafReaderContext context,
int doc) |
abstract Explanation |
Weight.explain(LeafReaderContext context,
int doc)
An explanation of the score computation for the named document.
|
protected BinaryDocValues |
FieldComparator.TermValComparator.getBinaryDocValues(LeafReaderContext context,
String field)
Retrieves the BinaryDocValues for the field in this segment
|
LeafFieldComparator[] |
FieldValueHitQueue.getComparators(LeafReaderContext context) |
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. |
LeafCollector |
FilterCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
PositiveScoresOnlyCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
SimpleCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
Collector.getLeafCollector(LeafReaderContext context)
Create a new
collector to collect the given context. |
LeafCollector |
EarlyTerminatingSortingCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
TimeLimitingCollector.getLeafCollector(LeafReaderContext context) |
LeafCollector |
MultiCollector.getLeafCollector(LeafReaderContext 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
|
Scorer |
DisjunctionMaxQuery.DisjunctionMaxWeight.scorer(LeafReaderContext context)
Create the scorer used to score our associated DisjunctionMaxQuery
|
Scorer |
FilterWeight.scorer(LeafReaderContext context) |
Scorer |
RandomAccessWeight.scorer(LeafReaderContext context) |
abstract Scorer |
Weight.scorer(LeafReaderContext context)
Returns a
Scorer which can iterate in order over all matching
documents and assign them a score. |
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 |
---|
LeafSlice(LeafReaderContext... leaves) |
Constructor and Description |
---|
LRUQueryCache(int maxSize,
long maxRamBytesUsed,
Predicate<LeafReaderContext> leavesToCache)
Expert: Create a new instance that will cache at most
maxSize
queries with at most maxRamBytesUsed bytes of memory, only on
leaves that satisfy leavesToCache ; |
Modifier and Type | Method and Description |
---|---|
Similarity.SimScorer |
PerFieldSimilarityWrapper.simScorer(Similarity.SimWeight weight,
LeafReaderContext context) |
Similarity.SimScorer |
BM25Similarity.simScorer(Similarity.SimWeight stats,
LeafReaderContext context) |
Similarity.SimScorer |
TFIDFSimilarity.simScorer(Similarity.SimWeight stats,
LeafReaderContext context) |
Similarity.SimScorer |
SimilarityBase.simScorer(Similarity.SimWeight stats,
LeafReaderContext context) |
Similarity.SimScorer |
MultiSimilarity.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. |
Modifier and Type | Method and Description |
---|---|
Explanation |
SpanWeight.explain(LeafReaderContext context,
int doc) |
Similarity.SimScorer |
SpanWeight.getSimScorer(LeafReaderContext context)
Return a SimScorer for this context
|
Spans |
SpanPositionCheckQuery.SpanPositionCheckWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
Spans |
SpanTermQuery.SpanTermWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
Spans |
SpanOrQuery.SpanOrWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
Spans |
SpanContainingQuery.SpanContainingWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings)
Return spans from
big that contain at least one spans from little . |
Spans |
SpanNearQuery.SpanNearWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
Spans |
SpanWithinQuery.SpanWithinWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings)
Return spans from
little that are contained in a spans from big . |
Spans |
SpanNotQuery.SpanNotWeight.getSpans(LeafReaderContext context,
SpanWeight.Postings requiredPostings) |
abstract Spans |
SpanWeight.getSpans(LeafReaderContext ctx,
SpanWeight.Postings requiredPostings)
Expert: Return a Spans object iterating over matches from this Weight
|
SpanScorer |
SpanWeight.scorer(LeafReaderContext context) |
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.