From: Eric Wong Date: Sat, 5 Sep 2015 07:42:44 +0000 (+0000) Subject: search: note why we do not support FLAG_PURE_NOT X-Git-Tag: v1.0.0~902 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=cc5ca11dbe88aab95cc593aa94f5d8a6ad5a2eb4;p=public-inbox.git search: note why we do not support FLAG_PURE_NOT Perhaps this can be optionally enabled in the future for smaller sites. --- 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, };