C# Class Lucene.Net.Search.FieldComparator.RelevanceComparator

Sorts by descending relevance. NOTE: if you are sorting only by descending relevance and then secondarily by ascending docID, peformance is faster using TopScoreDocCollector directly (which Searcher.Search(Query) uses when no Sort is specified).
Inheritance: FieldComparator
Datei anzeigen Open project: synhershko/lucene.net

Public Methods

Method Description
Compare ( int slot1, int slot2 ) : int
CompareBottom ( int doc ) : int
Copy ( int slot, int doc ) : void
SetBottom ( int bottom ) : void
SetNextReader ( Lucene.Net.Index.IndexReader reader, int docBase ) : void
SetScorer ( Lucene.Net.Search.Scorer scorer ) : void
this ( int slot ) : IComparable

Private Methods

Method Description
RelevanceComparator ( int numHits ) : System

Method Details

Compare() public method

public Compare ( int slot1, int slot2 ) : int
slot1 int
slot2 int
return int

CompareBottom() public method

public CompareBottom ( int doc ) : int
doc int
return int

Copy() public method

public Copy ( int slot, int doc ) : void
slot int
doc int
return void

SetBottom() public method

public SetBottom ( int bottom ) : void
bottom int
return void

SetNextReader() public method

public SetNextReader ( Lucene.Net.Index.IndexReader reader, int docBase ) : void
reader Lucene.Net.Index.IndexReader
docBase int
return void

SetScorer() public method

public SetScorer ( Lucene.Net.Search.Scorer scorer ) : void
scorer Lucene.Net.Search.Scorer
return void

this() public method

public this ( int slot ) : IComparable
slot int
return IComparable