about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-08-09 23:59:10 +0000
committerEric Wong <e@80x24.org>2016-08-10 23:20:19 +0000
commitc357e8699d99e20e1033e13bd1e2faa9856fb456 (patch)
treef20dd3f66d746a4884af70b10fa79187f6a9c7e3
parent414d67298d830bec7fd4241b30283e08faa3222d (diff)
downloadpublic-inbox-c357e8699d99e20e1033e13bd1e2faa9856fb456.tar.gz
It is not unheard of for users to attempt finding messages by
entering Message-IDs into the "Search" box instead of using the
existing URL structure.  So make it possible for them.

Fwiw, I've definitely encountered users who enter entire URLs
into generic search engines.
-rw-r--r--lib/PublicInbox/SearchIdx.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 0582526e..a18a2148 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -169,6 +169,7 @@ sub add_message {
                 });
 
                 link_message($self, $smsg, $old_tid);
+                $tg->index_text($mid, 1);
                 $doc->set_data($smsg->to_doc_data($blob));
                 if (defined $doc_id) {
                         $db->replace_document($doc_id, $doc);