Class: Ferret::Search::DisjunctionSumScorer::ScorerQueue
- Inherits:
-
Utils::PriorityQueue
- Object
- Utils::PriorityQueue
- Ferret::Search::DisjunctionSumScorer::ScorerQueue
- Defined in:
- lib/ferret/search/disjunction_sum_scorer.rb
Overview
A PriorityQueue that orders by Scorer#doc().
Instance Attribute Summary
Attributes inherited from Utils::PriorityQueue
Instance Method Summary collapse
Methods inherited from Utils::PriorityQueue
#adjust_top, #clear, #initialize, #insert, #pop, #push, #put_heap, #top
Constructor Details
This class inherits a constructor from Ferret::Utils::PriorityQueue
Instance Method Details
#less_than(scorer1, scorer2) ⇒ Object
73 74 75 |
# File 'lib/ferret/search/disjunction_sum_scorer.rb', line 73 def less_than(scorer1, scorer2) return scorer1.doc < scorer2.doc end |