A {@link Collector} that sorts by {@link SortField} using {@link FieldComparator}s.

See the {@link #create(Lucene.Net.Search.Sort, int, boolean, boolean, boolean, boolean)} method for instantiating a TopFieldCollector.

NOTE: This API is experimental and might change in incompatible ways in the next release.

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

Syntax

C#
public abstract class TopFieldCollector : TopDocsCollector
Visual Basic
Public MustInherit Class TopFieldCollector _
	Inherits TopDocsCollector
Visual C++
public ref class TopFieldCollector abstract : public TopDocsCollector

Inheritance Hierarchy

System..::..Object
  Lucene.Net.Search..::..Collector
    Lucene.Net.Search..::..TopDocsCollector
      Lucene.Net.Search..::..TopFieldCollector

See Also