* [PATCH] searchidx: allow searching Message-IDs in free-form text
@ 2016-08-10 23:23 Eric Wong
0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-08-10 23:23 UTC (permalink / raw)
To: meta
(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/
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-08-10 23:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-10 23:23 [PATCH] searchidx: allow searching Message-IDs in free-form text Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).