We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6470ae3 commit d4fb503Copy full SHA for d4fb503
src/Search/Sorting/SortBuilder.php
@@ -48,7 +48,7 @@ public function sortBy(string $field, string $order = SortOrder::ASC, ?string $m
48
public function sortByScript(Script $script, string $type = ScriptSortType::NUMBER, string $order = SortOrder::ASC): static
49
{
50
$sort = new Sort(
51
- field: '_script',
+ field: '_script' . md5(json_encode($script->toDSL())),
52
order: $order,
53
type: $type,
54
script: $script,
0 commit comments