diff --git a/Classes/Common/Solr/Solr.php b/Classes/Common/Solr/Solr.php index 4fbbfe8d34..7c4b644869 100644 --- a/Classes/Common/Solr/Solr.php +++ b/Classes/Common/Solr/Solr.php @@ -188,8 +188,7 @@ public static function createCore($core = '') */ public static function escapeQuery($query) { - $helper = GeneralUtility::makeInstance(\Solarium\Core\Query\Helper::class); - // Escape query by dissallowing range and field operators + // Escape query by disallowing range and field operators // Permit operators: wildcard, boolean, fuzzy, proximity, boost, grouping // https://solr.apache.org/guide/solr/latest/query-guide/standard-query-parser.html return preg_replace('/(\{|}|\[|]|:|\/|\\\)/', '\\\$1', $query);