Package | Description |
---|---|
org.apache.lucene.search |
Code to search indices.
|
Modifier and Type | Class and Description |
---|---|
class |
TimeLimitedCollector
The TimeLimitedCollector is used to timeout search requests that
take longer than the maximum allowed search time limit.
|
class |
TopDocCollector
A
HitCollector implementation that collects the top-scoring
documents, returning them as a TopDocs . |
class |
TopFieldDocCollector
A
HitCollector implementation that collects the top-sorting
documents, returning them as a TopFieldDocs . |
Modifier and Type | Method and Description |
---|---|
void |
Scorer.score(HitCollector hc)
Scores and collects all matching documents.
|
protected boolean |
Scorer.score(HitCollector hc,
int max)
Expert: Collects matching documents in a range.
|
void |
Searcher.search(Query query,
Filter filter,
HitCollector results)
Lower-level search API.
|
void |
Searcher.search(Query query,
HitCollector results)
Lower-level search API.
|
void |
Searchable.search(Weight weight,
Filter filter,
HitCollector results)
Lower-level search API.
|
void |
ParallelMultiSearcher.search(Weight weight,
Filter filter,
HitCollector results)
Lower-level search API.
|
void |
RemoteSearchable.search(Weight weight,
Filter filter,
HitCollector results) |
void |
IndexSearcher.search(Weight weight,
Filter filter,
HitCollector results) |
void |
MultiSearcher.search(Weight weight,
Filter filter,
HitCollector results) |
abstract void |
Searcher.search(Weight weight,
Filter filter,
HitCollector results) |
Constructor and Description |
---|
TimeLimitedCollector(HitCollector hc,
long timeAllowed)
Create a TimeLimitedCollector wrapper over another HitCollector with a specified timeout.
|
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.