1 From: Eric Wong <e@80x24.org>
2 Date: Fri, 20 Jul 2018 07:21:41 +0000
4 Subject: [PATCH] search: use boolean prefix for filenames in diffs, too
5 Message-ID: <20180720072141.GA15957@example>
7 Filenames within a project tend to be reasonably stable within a
8 project and I plan on having automated searches hit these.
10 Also, using no term prefix at all (the default for searching)
11 still allows probabilistic searches on everything that's in a
12 "git diff", including the blob names which were just made
15 Note, attachment filenames ("n:" prefix) will stil use
16 probabilistic search, as they're hardly standardized.
18 lib/PublicInbox/Search.pm | 6 +++---
19 1 file changed, 3 insertions(+), 3 deletions(-)
21 diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
22 index 090d998b6c2c..6e006fd73b1d 100644
23 --- a/lib/PublicInbox/Search.pm
24 +++ b/lib/PublicInbox/Search.pm
25 @@ -53,6 +53,9 @@ my %bool_pfx_external = (
28 dfblob => 'XDFPRE XDFPOST',
34 my $non_quoted_body = 'XNQ XDFN XDFA XDFB XDFHH XDFCTX XDFPRE XDFPOST';
35 @@ -72,9 +75,6 @@ my %prob_prefix = (
38 nq => $non_quoted_body,