KinoSearch::Search::HitCollector - Process doc/score pairs.
# Abstract base class.
A Scorer spits out raw doc_num/Tally pairs; a HitCollector decides what to do with them, based on how the abstract collect() method is implemented.
package MyHitCollector; use base qw( KinoSearch::Search::HitCollector ); our %foo; sub new { my $self = shift->SUPER::new; my %args = @_; $foo{$$self} = $args{foo}; return $self; }
Abstract constructor. Takes no arguments.
Do something with a doc num and a Tally. (For instance, keep track of the docs with the ten highest scores.)
KinoSearch::Search::HitCollector isa KinoSearch::Obj.
Copyright 2005-2008 Marvin Humphrey
See KinoSearch version 0.20.