From 1439e55b700e2cf74f3ed0da1a6b89cea09620e7 Mon Sep 17 00:00:00 2001 From: Andrea Cecchi Date: Mon, 18 Mar 2024 12:47:18 +0100 Subject: [PATCH] Patch in @querystring-search that avoid to search through all the site if there is an absolutePath criteria with non existing UID and b_size==1 --- src/redturtle/volto/restapi/services/querystringsearch/get.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/redturtle/volto/restapi/services/querystringsearch/get.py b/src/redturtle/volto/restapi/services/querystringsearch/get.py index fd4d6b2..4b83747 100644 --- a/src/redturtle/volto/restapi/services/querystringsearch/get.py +++ b/src/redturtle/volto/restapi/services/querystringsearch/get.py @@ -117,7 +117,8 @@ def cleanup_query(self, query, b_size): operation = criteria.get("o", "") if ( index == "path" - and operation == "plone.app.querystring.operation.string.absolutePath" + and operation # noqa + == "plone.app.querystring.operation.string.absolutePath" ): criteria_value = criteria.get("v", "").split("::") value = criteria_value[0]