Skip to content

Commit

Permalink
Remove unused helper variable in escapeQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Jun 27, 2023
1 parent ef67cd8 commit ace5bcc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Classes/Common/Solr/Solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ace5bcc

Please sign in to comment.