From ab1ef15d9d9c2fd11006b616de8decfcb347794f Mon Sep 17 00:00:00 2001 From: Serafeim Chatzopoulos Date: Wed, 10 Jul 2024 20:09:34 +0300 Subject: [PATCH] Fix negation query --- src/main/java/eu/openaire/api/mappers/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/openaire/api/mappers/Utils.java b/src/main/java/eu/openaire/api/mappers/Utils.java index 507a23e..fdced3f 100644 --- a/src/main/java/eu/openaire/api/mappers/Utils.java +++ b/src/main/java/eu/openaire/api/mappers/Utils.java @@ -127,7 +127,7 @@ public class Utils { // if the value starts with the NOT operator, add a wildcard at the beginning // NOTE: this is a workaround for Solr, which does not support solely NOT queries if (value.startsWith("NOT")) { - value = "*:* " + value; + value = "* " + value; } return value;