Man Page: plucene::search::hitcollector
Operating Environment: debian
Section: 3pm
Plucene::Search::HitCollector(3pm) User Contributed Perl Documentation Plucene::Search::HitCollector(3pm)NAMEPlucene::Search::HitCollectorSYNOPSIS# used in conjunction with the IndexSearcher my $searcher = Plucene::Search::IndexSearcher->new($DIRECTORY); my $hc = Plucene::Search::HitCollector->new( collect => sub { my ($self, $doc, $score) = @_; ... }); $searcher->search_hc($QUERY, $hc);DESCRIPTIONThis is used in conjunction with the IndexSearcher, in that whenever a non-zero scoring document is found, the subref with with the HitCollector was made will get called.METHODSnew my $hc = Plucene::Search::HitCollector->new( collect => sub { my ($self, $doc, $score) = @_; ... }); This will create a new Plucene::Search::HitCollector with the passed subref. collect This is called once for every non-zero scoring document, with the document number and its score. perl v5.12.4 2011-08-14 Plucene::Search::HitCollector(3pm)
| Similar Topics in the Unix Linux Community |
|---|
| Installing Dash Shell on OS X Lion |
| Introduction |
| Weird 'find' results |
| My first PERL incarnation... Audio Oscillograph |