]> Sergey Matveev's repositories - public-inbox.git/commit
search: tweak parsing for internal queries
authorEric Wong <e@80x24.org>
Sat, 5 Sep 2015 08:00:12 +0000 (08:00 +0000)
committerEric Wong <e@80x24.org>
Sat, 5 Sep 2015 08:11:45 +0000 (08:11 +0000)
commit79601e109dc8162b4c62f7c63cfc6518b0f00112
tree51d2e8d2ecaf4b56327c56bba5527ddf5ec97507
parentcc5ca11dbe88aab95cc593aa94f5d8a6ad5a2eb4
search: tweak parsing for internal queries

We should not need to use QueryParser for internal queries,
but rather for external ones.

We'll also be exposing searching Message-IDs with the "mid:" prefix
for broken mids on some servers, and enabling partial searching
with 'm' to help with URL truncations.

Since thread IDs may be volatile, they cannot be exposed to the
public, there's no reason to expose them to the query parser,
either.

Also, add 's:' as an alternative probabilistic prefix to 'subject'
as it is shorter.
lib/PublicInbox/Search.pm