Skip to content

Commit d4fb503

Browse files
authored
Update SortBuilder.php
1 parent 6470ae3 commit d4fb503

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Search/Sorting/SortBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function sortBy(string $field, string $order = SortOrder::ASC, ?string $m
4848
public function sortByScript(Script $script, string $type = ScriptSortType::NUMBER, string $order = SortOrder::ASC): static
4949
{
5050
$sort = new Sort(
51-
field: '_script',
51+
field: '_script' . md5(json_encode($script->toDSL())),
5252
order: $order,
5353
type: $type,
5454
script: $script,

0 commit comments

Comments
 (0)