Lower-level search API.

{@link HitCollector#Collect(int,float)} is called for every matching document.
HitCollector-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#
[ObsoleteAttribute("use Search(Query, Filter, Collector) instead.")]
public virtual void Search(
	Query query,
	Filter filter,
	HitCollector results
)
Visual Basic
<ObsoleteAttribute("use Search(Query, Filter, Collector) instead.")> _
Public Overridable Sub Search ( _
	query As Query, _
	filter As Filter, _
	results As HitCollector _
)
Visual C++
[ObsoleteAttribute(L"use Search(Query, Filter, Collector) instead.")]
public:
virtual void Search(
	Query^ query, 
	Filter^ filter, 
	HitCollector^ 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..::..HitCollector
to receive hits

See Also