Perl Diver 2.33
Main Environment Variables Perl Default Values Perl Config - Summary Perl Config - Full Installed Modules List Directory uptime Docs

Module Documentation
Details and documentation about a specific module, including version and documentation (if available). Note that while links to perldoc.com and search.cpan.org are provided, the module may be part of a larger distribution. If you reach a File Not Found page on either site, please try the parent module.

Plucene::Search::PhraseScorer

Name Plucene::Search::PhraseScorer
Version
Located at /usr/share/perl5
File /usr/share/perl5/Plucene/Search/PhraseScorer.pm
Is Core No
Search CPAN for this module Plucene::Search::PhraseScorer
Documentation Plucene::Search::PhraseScorer
Module Details Plucene::Search::PhraseScorer

NAME

Plucene::Search::PhraseScorer - a phrase scorer


SYNOPSIS

        # isa Plucene::Search::Scorer
        $scorer->score($results, $end);

=head1 DESCRIPTION

This is the phrase scorer.


METHODS

score

        $scorer->score($results, $end);

=cut

sub score { my ($self, $results, $end) = @_; while ($self->last->doc < $end) { while ($self->first->doc < $self->last->doc) { do { $self->first->next; } while $self->first->doc < $self->last->doc; $self->_first_to_last; return if $self->last->doc >= $end; } my $freq = $self->_phrase_freq; $self->_score_it($freq, $self->first->doc, $results); $self->last->next; } }

sub _first_to_last { my $self = shift; $self->last->next_in_list($self->first); $self->last($self->first); $self->first($self->first->next_in_list); $self->last->next_in_list(undef); }

1;

Perl Diver brought to you by ScriptSolutions.com © 1997- 2026