java.lang.Object | |||
↳ | org.apache.lucene.search.Searcher | ||
↳ | org.apache.lucene.search.MultiSearcher | ||
↳ | org.apache.lucene.search.ParallelMultiSearcher |
Implements parallel search over a set of Searchables
.
Applications usually need only call the inherited search(Query, int)
or search(Query, Filter, int)
methods.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a
Searchable which searches searchables. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Frees resources associated with this Searcher.
| |||||||||||
Executes each
Searchable 's docFreq() in its own thread and waits for each search to complete and merge
the results back together. | |||||||||||
A search implementation which executes each
Searchable in its own thread and waits for each search to complete and merge
the results back together. | |||||||||||
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.
| |||||||||||
Lower-level search API.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.lucene.search.MultiSearcher
| |||||||||||
From class
org.apache.lucene.search.Searcher
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.io.Closeable
| |||||||||||
From interface
org.apache.lucene.search.Searchable
|
Creates a Searchable
which searches searchables.
IOException |
---|
Frees resources associated with this Searcher. Be careful not to call this method while you are still using objects that reference this Searchable.
IOException |
---|
Executes each Searchable
's docFreq() in its own thread and waits for each search to complete and merge
the results back together.
IOException |
---|
A search implementation which executes each
Searchable
in its own thread and waits for each search to complete and merge
the results back together.
IOException |
---|
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.
IOException |
---|
Lower-level search API.
collect(int)
is called for every matching document.
Applications should only use this if they need all of the
matching documents. The high-level search API (search(Query, int)
) is usually more efficient, as it skips
non-high-scoring hits.
This method cannot be parallelized, because Collector
supports no concurrent access.
weight | to match documents |
---|---|
filter | if non-null, a bitset used to eliminate some documents |
collector | to receive hits |
IOException |
---|