| Package | Description |
|---|---|
| org.apache.lucene.search |
Code to search indices.
|
| Modifier and Type | Field and Description |
|---|---|
static Sort |
Sort.INDEXORDER
Represents sorting by index order.
|
static Sort |
Sort.RELEVANCE
Represents sorting by computed relevance.
|
| Modifier and Type | Method and Description |
|---|---|
static TopFieldCollector |
TopFieldCollector.create(Sort sort,
int numHits,
boolean fillFields,
boolean trackDocScores,
boolean trackMaxScore,
boolean docsScoredInOrder)
Creates a new
TopFieldCollector from the given
arguments. |
static TopDocs |
TopDocs.merge(Sort sort,
int topN,
TopDocs[] shardHits)
Returns a new TopDocs, containing topN results across
the provided TopDocs, sorting by the specified
Sort. |
TopFieldDocs |
Searcher.search(Query query,
Filter filter,
int n,
Sort sort)
Deprecated.
Search implementation with arbitrary sorting.
|
TopFieldDocs |
IndexSearcher.search(Query query,
Filter filter,
int n,
Sort sort)
Search implementation with arbitrary sorting.
|
TopFieldDocs |
Searcher.search(Query query,
int n,
Sort sort)
Deprecated.
Search implementation with arbitrary sorting and no filter.
|
TopFieldDocs |
IndexSearcher.search(Query query,
int n,
Sort sort)
Search implementation with arbitrary sorting and no filter.
|
abstract TopFieldDocs |
Searcher.search(Weight weight,
Filter filter,
int n,
Sort sort)
Deprecated.
|
TopFieldDocs |
Searchable.search(Weight weight,
Filter filter,
int n,
Sort sort)
Deprecated.
Expert: Low-level search implementation with arbitrary sorting.
|
TopFieldDocs |
ParallelMultiSearcher.search(Weight weight,
Filter filter,
int nDocs,
Sort sort)
Deprecated.
A search implementation allowing sorting which spans a new thread for each
Searchable, waits for each search to complete and merges
the results back together.
|
TopFieldDocs |
MultiSearcher.search(Weight weight,
Filter filter,
int n,
Sort sort)
Deprecated.
|
TopFieldDocs |
IndexSearcher.search(Weight weight,
Filter filter,
int nDocs,
Sort sort)
Expert: Low-level search implementation with arbitrary sorting.
|
protected TopFieldDocs |
IndexSearcher.search(Weight weight,
Filter filter,
int nDocs,
Sort sort,
boolean fillFields)
Just like
IndexSearcher.search(Weight, Filter, int, Sort), but you choose
whether or not the fields in the returned FieldDoc instances should
be set by specifying fillFields. |