* [PATCH] searchidx: subject is not a term
@ 2015-10-02 1:56 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2015-10-02 1:56 UTC (permalink / raw)
To: meta
Sometimes subjects are excessively long and hit Xapian's 245-byte
term limit. We can still perform subject-only searches with
a probabilistic prefix.
---
lib/PublicInbox/SearchIdx.pm | 2 --
1 file changed, 2 deletions(-)
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm
index 4b43369..f98ba3e 100644
--- a/lib/PublicInbox/SearchIdx.pm
+++ b/lib/PublicInbox/SearchIdx.pm
@@ -80,8 +80,6 @@ sub add_message {
my $subj = $smsg->subject;
if ($subj ne '') {
- $doc->add_term(xpfx('subject') . $subj);
-
my $path = $self->subject_path($subj);
$doc->add_term(xpfx('path') . mid_compress($path));
}
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-10-02 1:56 7% [PATCH] searchidx: subject is not a term Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
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).