Skip to content

Commit

Permalink
Issue #3427571: Support '*' as value in manually created Search API q…
Browse files Browse the repository at this point in the history
…ueries
  • Loading branch information
mkalkbrenner committed Apr 10, 2024
1 parent 1b8e478 commit 026dca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin/search_api/backend/SearchApiSolrBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -3475,7 +3475,7 @@ protected function createFilterQuery($field, $value, $operator, FieldInterface $
}

foreach ($value as &$v) {
if ('*' === $value) {
if ('*' === $v) {
if (!in_array($operator, ['=', 'BETWEEN', 'NOT BETWEEN'])) {
throw new SearchApiSolrException('Unsupported operator for wildcard searches');
}
Expand Down

0 comments on commit 026dca0

Please sign in to comment.