/usr/share/perl5/Plucene/Search/TopDocs.pm is in libplucene-perl 1.25-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | package Plucene::Search::TopDocs;
=head1 NAME
Plucene::Search::TopDocs - The top hits for a query
=head1 SYNOPSIS
my $total_hits = $top_docs->total_hits;
my @score_docs = $top_docs->score_docs(@other);
=head1 DESCRIPTION
=head1 METHODS
=head2 total_hits
my $total_hits = $top_docs->total_hits;
The total number of hits for the query.
=cut
use strict;
use warnings;
use base 'Class::Accessor::Fast';
__PACKAGE__->mk_accessors(qw/ total_hits score_docs /);
=head2 score_docs
my @score_docs = $top_docs->score_docs(@other);
The top hits for the query.
=cut
sub score_docs {
my ($self, @other) = @_;
if (@other) { $self->{score_docs} = [@other] }
@{ $self->{score_docs} };
}
1;
|