Sorts by descending relevance. NOTE: if you are
sorting only by descending relevance and then
secondarily by ascending docID, peformance is faster
using {@link TopScoreDocCollector} directly (which {@link
IndexSearcher#search} uses when no {@link Sort} is
specified).
Namespace: Lucene.Net.SearchAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
public sealed class RelevanceComparator : FieldComparator |
Visual Basic |
---|
Public NotInheritable Class RelevanceComparator _ Inherits FieldComparator |
Visual C++ |
---|
public ref class RelevanceComparator sealed : public FieldComparator |
Inheritance Hierarchy
System..::..Object
Lucene.Net.Search..::..FieldComparator
Lucene.Net.Search..::..FieldComparator..::..RelevanceComparator
Lucene.Net.Search..::..FieldComparator
Lucene.Net.Search..::..FieldComparator..::..RelevanceComparator