From cc5ca11dbe88aab95cc593aa94f5d8a6ad5a2eb4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 5 Sep 2015 07:42:44 +0000 Subject: search: note why we do not support FLAG_PURE_NOT Perhaps this can be optionally enabled in the future for smaller sites. --- lib/PublicInbox/Search.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 1874ee9d..b6e71da0 100644 --- a/lib/PublicInbox/Search.pm +++ b/lib/PublicInbox/Search.pm @@ -28,6 +28,9 @@ use constant { # 8 - remove redundant/unneeded document data # 9 - disable Message-ID compression SCHEMA_VERSION => 9, + + # n.b. FLAG_PURE_NOT is expensive not suitable for a public website + # as it could become a denial-of-service vector QP_FLAGS => FLAG_PHRASE|FLAG_BOOLEAN|FLAG_LOVEHATE|FLAG_WILDCARD, }; -- cgit v1.2.3-24-ge0c7