diff --git a/src/Search/Request/RequestConfiguration.php b/src/Search/Request/RequestConfiguration.php index 526c9a0..aa379cb 100644 --- a/src/Search/Request/RequestConfiguration.php +++ b/src/Search/Request/RequestConfiguration.php @@ -101,8 +101,9 @@ public function manageRangeField(string $field): void $min = (float) $range['min']; $max = (float) $range['max']; if ($min > $max) { + $min = $range['min']; // Take the original value, not casted $range['min'] = $range['max']; - $range['max'] = $range['min']; + $range['max'] = $min; } }