Lower-level search API.
{@link Collector#Collect(int)} is called for every document.
Collector-based access to remote indexes is discouraged. Applications should only use this if they need all of the matching documents. The high-level search API ({@link Searcher#Search(Query)}) is usually more efficient, as it skips non-high-scoring hits.
Namespace: Lucene.Net.SearchCollector-based access to remote indexes is discouraged. Applications should only use this if they need all of the matching documents. The high-level search API ({@link Searcher#Search(Query)}) is usually more efficient, as it skips non-high-scoring hits.
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
void Search( Weight weight, Filter filter, Collector collector ) |
Visual Basic |
---|
Sub Search ( _ weight As Weight, _ filter As Filter, _ collector As Collector _ ) |
Visual C++ |
---|
void Search( Weight^ weight, Filter^ filter, Collector^ collector ) |
Parameters
- weight
- Type: Lucene.Net.Search..::..Weight
to match documents
- filter
- Type: Lucene.Net.Search..::..Filter
if non-null, used to permit documents to be collected.
- collector
- Type: Lucene.Net.Search..::..Collector
to receive hits