Fix negation query

This commit is contained in:
Serafeim Chatzopoulos 2024-07-10 20:09:34 +03:00
parent 17370abf47
commit ab1ef15d9d
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ public class Utils {
// if the value starts with the NOT operator, add a wildcard at the beginning // 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 // NOTE: this is a workaround for Solr, which does not support solely NOT queries
if (value.startsWith("NOT")) { if (value.startsWith("NOT")) {
value = "*:* " + value; value = "* " + value;
} }
return value; return value;