Plucene::Search::HitCollector(3User Contributed Perl DocumentatPlucene::Search::HitCollector(3pm) NAME Plucene::Search::HitCollector SYNOPSIS # 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); DESCRIPTION This 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. METHODS new 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.26.1 2018-04-02 Plucene::Search::HitCollector(3pm)
Generated by $Id: phpMan.php,v 4.55 2007/09/05 04:42:51 chedong Exp $ Author: Che Dong
On Apache
Under GNU General Public License
2025-02-22 00:42 @3.135.187.121 CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)