From: Eric Wong Date: Fri, 3 Jan 2020 08:46:02 +0000 (+0000) Subject: searchidx: index_text: use Xapian parameter names X-Git-Tag: v1.3.0~143 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=65631cff59d920114f203ce67fbe222729957a82;p=public-inbox.git searchidx: index_text: use Xapian parameter names Use the parameter names from the Search::Xapian::TermGenerator manpage for our local variables instead of confusing names... --- diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 47537ed4..ca1457fd 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -144,14 +144,14 @@ sub term_generator ($) { # write-only } sub index_text ($$$$) { - my ($self, $field, $n, $text) = @_; - my $tg = term_generator($self); + my ($self, $text, $wdf_inc, $prefix) = @_; + my $tg = term_generator($self); # man Search::Xapian::TermGenerator if ($self->{indexlevel} eq 'full') { - $tg->index_text($field, $n, $text); + $tg->index_text($text, $wdf_inc, $prefix); $tg->increase_termpos; } else { - $tg->index_text_without_positions($field, $n, $text); + $tg->index_text_without_positions($text, $wdf_inc, $prefix); } }