Skip to content

Commit b5e3070

Browse files
authored
Merge pull request #9 from sergoslav/hotfix/query-operator-case-insensitive
query operator as lowercase to escape casesensetive troubles.
2 parents e136111 + e5c210d commit b5e3070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DSL/QueryBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ private function _parseCondition($condition, $parentField = null): array
279279

280280
return ['match' => [$field => $value]];
281281
} else {
282-
$operator = key($value);
282+
$operator = strtolower(key($value));
283283
$operand = current($value);
284284
$queryPart = [];
285285

0 commit comments

Comments
 (0)