Lower-level search API.
{@link HitCollector#Collect(int,float)} is called for every matching
document.
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.
Note: The passed to this method is a raw score.
In other words, the score will not necessarily be a float whose value is
between 0 and 1.
Namespace: Lucene.Net.SearchCopyC#
score
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[ObsoleteAttribute("use Search(Query, Collector) instead.")] public virtual void Search( Query query, HitCollector results ) |
Visual Basic |
---|
<ObsoleteAttribute("use Search(Query, Collector) instead.")> _ Public Overridable Sub Search ( _ query As Query, _ results As HitCollector _ ) |
Visual C++ |
---|
[ObsoleteAttribute(L"use Search(Query, Collector) instead.")] public: virtual void Search( Query^ query, HitCollector^ results ) |
Parameters
- query
- Type: Lucene.Net.Search..::..Query
[Missing <param name="query"/> documentation for "M:Lucene.Net.Search.Searcher.Search(Lucene.Net.Search.Query,Lucene.Net.Search.HitCollector)"]
- results
- Type: Lucene.Net.Search..::..HitCollector
[Missing <param name="results"/> documentation for "M:Lucene.Net.Search.Searcher.Search(Lucene.Net.Search.Query,Lucene.Net.Search.HitCollector)"]