From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00 shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: meta@public-inbox.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id B98E0200F5 for ; Sat, 5 Sep 2015 09:01:11 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/6] search: note why we do not support FLAG_PURE_NOT Date: Sat, 5 Sep 2015 09:01:06 +0000 Message-Id: <1441443668-21092-5-git-send-email-e@80x24.org> In-Reply-To: <1441443668-21092-1-git-send-email-e@80x24.org> References: <1441443668-21092-1-git-send-email-e@80x24.org> List-Id: Perhaps this can be optionally enabled in the future for smaller sites. --- lib/PublicInbox/Search.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm index 1874ee9..b6e71da 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, }; -- EW