Lower-level search API.

{@link HitCollector#Collect(int,float)} is called for every non-zero scoring 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)}) 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(Weight, Filter, Collector) instead.")]
void Search(
	Weight weight,
	Filter filter,
	HitCollector results
)
Visual Basic
<ObsoleteAttribute("use Search(Weight, Filter, Collector) instead.")> _
Sub Search ( _
	weight As Weight, _
	filter As Filter, _
	results As HitCollector _
)
Visual C++
[ObsoleteAttribute(L"use Search(Weight, Filter, Collector) instead.")]
void Search(
	Weight^ weight, 
	Filter^ filter, 
	HitCollector^ results
)

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.
results
Type: Lucene.Net.Search..::..HitCollector
to receive hits

See Also