* [PATCH 4/6] search: note why we do not support FLAG_PURE_NOT
@ 2015-09-05 9:01 7% ` Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2015-09-05 9:01 UTC (permalink / raw)
To: meta
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
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2015-09-05 9:01 [PATCH 0/6] another round of search updates Eric Wong
2015-09-05 9:01 7% ` [PATCH 4/6] search: note why we do not support FLAG_PURE_NOT Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).