From e6b76826f48b34b333f5bf7a26aeb37016096e54 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Wed, 12 Jan 2022 14:03:12 +0000 Subject: [PATCH] do not try to respond to regex queries until properly implemented --- .../main/groovy/com/muwire/core/search/SearchManager.groovy | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/src/main/groovy/com/muwire/core/search/SearchManager.groovy b/core/src/main/groovy/com/muwire/core/search/SearchManager.groovy index 0203e9eb..9c230024 100644 --- a/core/src/main/groovy/com/muwire/core/search/SearchManager.groovy +++ b/core/src/main/groovy/com/muwire/core/search/SearchManager.groovy @@ -40,6 +40,12 @@ public class SearchManager { return } responderAddress.put(event.searchEvent.uuid, event) + + if (event.searchEvent.regex) { + log.info("dropping regex query") + return + } + eventBus.publish(event.searchEvent) }