A {@link HitCollector} implementation that collects the top-sorting documents, returning them as a {@link TopFieldDocs}. This is used by {@link IndexSearcher} to implement {@link TopFieldDocs}-based search.

This may be extended, overriding the collect method to, e.g., conditionally invoke

CopyC#
super()
in order to filter which documents are collected.

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

Syntax

C#
[ObsoleteAttribute("Please use TopFieldCollector instead.")]
public class TopFieldDocCollector : TopDocCollector
Visual Basic
<ObsoleteAttribute("Please use TopFieldCollector instead.")> _
Public Class TopFieldDocCollector _
	Inherits TopDocCollector
Visual C++
[ObsoleteAttribute(L"Please use TopFieldCollector instead.")]
public ref class TopFieldDocCollector : public TopDocCollector

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..HitCollector
    Lucene.Net.Search..::..TopDocCollector
      Lucene.Net.Search..::..TopFieldDocCollector

See Also