about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-01-03 08:46:02 +0000
committerEric Wong <e@80x24.org>2020-01-04 09:35:03 +0000
commit65631cff59d920114f203ce67fbe222729957a82 (patch)
treefe6cfa7d43abc208193dfff5338ab56301487ecd /lib
parent8fe6742cd518eaeed79df87e71c267f87bac0e67 (diff)
downloadpublic-inbox-65631cff59d920114f203ce67fbe222729957a82.tar.gz
Use the parameter names from the Search::Xapian::TermGenerator
manpage for our local variables instead of confusing names...
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/SearchIdx.pm8
1 files changed, 4 insertions, 4 deletions
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);
         }
 }