Lower-level search API.

{@link Collector#Collect(int)} is called for every matching 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, Filter, int)}) is usually more efficient, as it skips non-high-scoring hits.

Namespace: Lucene.Net.Search
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
public virtual void Search(
	Query query,
	Filter filter,
	Collector results
)
Visual Basic
Public Overridable Sub Search ( _
	query As Query, _
	filter As Filter, _
	results As Collector _
)
Visual C++
public:
virtual void Search(
	Query^ query, 
	Filter^ filter, 
	Collector^ results
)

Parameters

query
Type: Lucene.Net.Search..::..Query
to match documents
filter
Type: Lucene.Net.Search..::..Filter
if non-null, used to permit documents to be collected.
results
Type: Lucene.Net.Search..::..Collector
to receive hits

See Also