GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Plucene::Search::HitCollector(3) User Contributed Perl Documentation Plucene::Search::HitCollector(3)

Plucene::Search::HitCollector

        # 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);

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.

        my $hc = Plucene::Search::HitCollector->new( collect =>
                sub { 
                        my ($self, $doc, $score) = @_; 
                        ... 
        });

This will create a new Plucene::Search::HitCollector with the passed subref.

This is called once for every non-zero scoring document, with the document number and its score.
2005-09-05 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.