diff options
author | Eric Wong <e@80x24.org> | 2021-10-26 10:35:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-10-26 17:43:53 +0000 |
commit | b470b9e7593dc769a195dd18e9d75e99a91674de (patch) | |
tree | af71b2354f0ee03da31474329a1b35c2af528d09 /lib | |
parent | 584721cf9c98beabce9b779faafa1eabb5c24de6 (diff) | |
download | public-inbox-b470b9e7593dc769a195dd18e9d75e99a91674de.tar.gz |
FLAG_PURE_NOT is too expensive for public-facing WWW use, but lei isn't public-facing. We'll also unconditionally enable phrase search on old "chert" DBs since lei doesn't need to worry about fairness across 10K users.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/PublicInbox/LeiSearch.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/PublicInbox/LeiSearch.pm b/lib/PublicInbox/LeiSearch.pm index 1fb38da1..d0ca13f0 100644 --- a/lib/PublicInbox/LeiSearch.pm +++ b/lib/PublicInbox/LeiSearch.pm @@ -175,6 +175,8 @@ sub all_terms { sub qparse_new { my ($self) = @_; my $qp = $self->SUPER::qparse_new; # PublicInbox::Search + $self->{qp_flags} |= PublicInbox::Search::FLAG_PHRASE() | + PublicInbox::Search::FLAG_PURE_NOT(); $qp->add_boolean_prefix('kw', 'K'); $qp->add_boolean_prefix('L', 'L'); $qp |