📄 topdocs.pm
字号:
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.=cutuse 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.=cutsub score_docs { my ($self, @other) = @_; if (@other) { $self->{score_docs} = [@other] } @{ $self->{score_docs} };}1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -