about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-09-05 07:42:44 +0000
committerEric Wong <e@80x24.org>2015-09-05 07:43:33 +0000
commitcc5ca11dbe88aab95cc593aa94f5d8a6ad5a2eb4 (patch)
treec0da3d1b4486737af2668ffcf727bf5da9b2c570 /lib
parentd25c98939f599ec71371ad7c0555f0db7fcaf89c (diff)
downloadpublic-inbox-cc5ca11dbe88aab95cc593aa94f5d8a6ad5a2eb4.tar.gz
Perhaps this can be optionally enabled in the future for smaller
sites.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox/Search.pm3
1 files changed, 3 insertions, 0 deletions
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,
 };