(Bcc-ing the user who brought this to my attention privately)
I will be reindexing the search index behind
http://czquwvybam4bgbro.onion/git/ shortly
(along with some other search-related changes queued up).
The rest of the stuff will be reindex later tonight if that goes
well (the reindexing code is a bit new and not-well-tested)
-----8<-------
Subject: [PATCH] searchidx: allow searching Message-IDs in free-form text
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.
---
lib/PublicInbox/SearchIdx.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 0582526..a18a214 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);
--
https://public-inbox.org/meta/
--
unsubscribe: [email protected]
archive: https://public-inbox.org/meta/