| 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 |
ConstantScoreQuery.ConstantWeight.bulkScorer(LeafReaderContext context,
Bits acceptDocs) |
BulkScorer |
BooleanQuery.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 |
ConstantScoreQuery.ConstantWeight.explain(LeafReaderContext context,
int doc) |
Explanation |
BooleanQuery.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)
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) |
DocIdSet |
DocValuesTermsFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs) |
abstract DocIdSet |
DocValuesRangeFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
This method is implemented for each data type
|
abstract DocIdSet |
DocTermOrdsRangeFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs)
This method is implemented for each data type
|
DocIdSet |
CachingWrapperFilter.getDocIdSet(LeafReaderContext context,
Bits acceptDocs) |
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 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 |
DisjunctionMaxQuery.DisjunctionMaxWeight.scorer(LeafReaderContext context,
Bits acceptDocs)
Create the scorer used to score our associated DisjunctionMaxQuery
|
Scorer |
ConstantScoreQuery.ConstantWeight.scorer(LeafReaderContext context,
Bits acceptDocs) |
Scorer |
BooleanQuery.BooleanWeight.scorer(LeafReaderContext context,
Bits acceptDocs) |
boolean |
UsageTrackingFilterCachingPolicy.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set) |
boolean |
FilterCachingPolicy.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set)
Whether the given
DocIdSet should be cached on a given segment. |
boolean |
FilterCachingPolicy.CacheOnLargeSegments.shouldCache(Filter filter,
LeafReaderContext context,
DocIdSet set) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
IndexSearcher.search(List<LeafReaderContext> leaves,
Weight weight,
Collector collector)
Lower-level search API.
|
protected TopFieldDocs |
IndexSearcher.search(List<LeafReaderContext> leaves,
Weight weight,
FieldDoc after,
int nDocs,
Sort sort,
boolean fillFields,
boolean doDocScores,
boolean doMaxScore)
Just like
IndexSearcher.search(Weight, int, Sort, boolean, boolean), but you choose
whether or not the fields in the returned FieldDoc instances should
be set by specifying fillFields. |
protected TopDocs |
IndexSearcher.search(List<LeafReaderContext> leaves,
Weight weight,
ScoreDoc after,
int nDocs)
Expert: Low-level search implementation.
|
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) |
Scorer |
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 |
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 |
FieldMaskingSpanQuery.getSpans(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
Scorer |
SpanWeight.scorer(LeafReaderContext context,
Bits acceptDocs) |
| Constructor and Description |
|---|
NearSpansOrdered(SpanNearQuery spanNearQuery,
LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
NearSpansOrdered(SpanNearQuery spanNearQuery,
LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts,
boolean collectPayloads) |
NearSpansUnordered(SpanNearQuery query,
LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
SpanPositionCheckQuery.PositionCheckSpan(LeafReaderContext context,
Bits acceptDocs,
Map<Term,TermContext> termContexts) |
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.