]> Sergey Matveev's repositories - public-inbox.git/blob - t/data/0001.patch
triewyde: ficks soem speling errrors
[public-inbox.git] / t / data / 0001.patch
1 From: Eric Wong <e@80x24.org>
2 Date: Fri, 20 Jul 2018 07:21:41 +0000
3 To: test@example.com
4 Subject: [PATCH] search: use boolean prefix for filenames in diffs, too
5 Message-ID: <20180720072141.GA15957@example>
6
7 Filenames within a project tend to be reasonably stable within a
8 project and I plan on having automated searches hit these.
9
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
13 boolean.
14
15 Note, attachment filenames ("n:" prefix) will still use
16 probabilistic search, as they're hardly standardized.
17 ---
18  lib/PublicInbox/Search.pm | 6 +++---
19  1 file changed, 3 insertions(+), 3 deletions(-)
20
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 = (
26         dfpre => 'XDFPRE',
27         dfpost => 'XDFPOST',
28         dfblob => 'XDFPRE XDFPOST',
29 +       dfn => 'XDFN',
30 +       dfa => 'XDFA',
31 +       dfb => 'XDFB',
32  );
33  
34  my $non_quoted_body = 'XNQ XDFN XDFA XDFB XDFHH XDFCTX XDFPRE XDFPOST';
35 @@ -72,9 +75,6 @@ my %prob_prefix = (
36  
37         q => 'XQUOT',
38         nq => $non_quoted_body,
39 -       dfn => 'XDFN',
40 -       dfa => 'XDFA',
41 -       dfb => 'XDFB',
42         dfhh => 'XDFHH',
43         dfctx => 'XDFCTX',
44  
45 -- 
46 ^_^