about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchIdx.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-10-02 21:15:07 +0000
committerEric Wong <e@80x24.org>2015-10-02 21:19:39 +0000
commit22d8fcc3d37b9ce13a5088f1d0557078c9a84062 (patch)
treed142185177ea717dcf262dfe7d71aef7ab86544e /lib/PublicInbox/SearchIdx.pm
parente4db71c8ce14cbb61aea0f39e29cb61b23ffd109 (diff)
downloadpublic-inbox-22d8fcc3d37b9ce13a5088f1d0557078c9a84062.tar.gz
We use it as a general compressor for identifiers such as
subject paths, so using the "mid_" prefix probably is not
appropriate.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r--lib/PublicInbox/SearchIdx.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index f98ba3e1..8184dc71 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -5,7 +5,7 @@ package PublicInbox::SearchIdx;
 use strict;
 use warnings;
 use base qw(PublicInbox::Search);
-use PublicInbox::MID qw/mid_clean mid_compress/;
+use PublicInbox::MID qw/mid_clean id_compress/;
 *xpfx = *PublicInbox::Search::xpfx;
 
 use constant {
@@ -81,7 +81,7 @@ sub add_message {
 
                 if ($subj ne '') {
                         my $path = $self->subject_path($subj);
-                        $doc->add_term(xpfx('path') . mid_compress($path));
+                        $doc->add_term(xpfx('path') . id_compress($path));
                 }
 
                 add_val($doc, &PublicInbox::Search::TS, $smsg->ts);