Skip to content

Commit 92de7cb

Browse files
committed
V7
1 parent 51bd936 commit 92de7cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Filtering/Criterias/Between.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ public function __construct(private string $field, private mixed $from, private
1414

1515
public function toDSL(): array
1616
{
17-
return ['range' => [$this->field => ['gte' => $this->from, 'lt' => $this->to]]];
17+
return ['range' => [$this->field => ['gte' => $this->from, 'lte' => $this->to]]];
1818
}
1919
}

tests/IntegrationTests/Search/FilteringSearchQueryIntegrationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
test('filtering search query whereBetween', function () {
5858
/** @var SearchIntegrationTestCase $this */
5959

60-
$query = ProductsIndex::query()->whereBetween(field: 'rating', from: 2, to: 9);
60+
$query = ProductsIndex::query()->whereBetween(field: 'rating', from: 2, to: 8);
6161

6262
$this->assertDocumentIds($query, [471, 328, 1, 405]);
6363
});

0 commit comments

Comments
 (0)