Class FieldComparer
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public abstract class FieldComparer : object
Properties
Name | Description |
---|---|
Item[Int32] | Return the actual value in the slot. LUCENENET NOTE: This was value(int) in Lucene. |
Methods
Name | Description |
---|---|
Compare(Int32, Int32) | Compare hit at |
CompareBottom(Int32) | Compare the bottom of the queue with this doc. This will only invoked after setBottom has been called. This should return the same result as Compare(Int32, Int32) as if bottom were slot1 and the new document were slot 2. For a search that hits many results, this method will be the hotspot (invoked by far the most frequently). |
CompareTop(Int32) | Compare the top value with this doc. This will only invoked after SetTopValue(Object) has been called. This should return the same result as Compare(Int32, Int32) as if topValue were slot1 and the new document were slot 2. This is only called for searches that use SearchAfter (deep paging). |
CompareValues(Object, Object) | |
Copy(Int32, Int32) | This method is called when a new hit is competitive. You should copy any state associated with this document that will be required for future comparisons, into the specified slot. |
SetBottom(Int32) | Set the bottom slot, ie the "weakest" (sorted last) entry in the queue. When CompareBottom(Int32) is called, you should compare against this slot. This will always be called before CompareBottom(Int32). |
SetNextReader(AtomicReaderContext) | Set a new AtomicReaderContext. All subsequent docIDs are relative to the current reader (you must add docBase if you need to map it to a top-level docID). |
SetScorer(Scorer) | Sets the Scorer to use in case a document's score is needed. |
SetTopValue(Object) | Record the top value, for future calls to CompareTop(Int32). This is only called for searches that use SearchAfter (deep paging), and is called before any calls to SetNextReader(AtomicReaderContext). |