Skip to content

Commit eefb686

Browse files
authored
Update Sort.php
1 parent d4fb503 commit eefb686

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Search/Sorting/Sort.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function toDSL(): array
5151
}
5252

5353
if ($this->script !== null) {
54+
$this->field = '_script';
5455
$details['script'] = $this->script->toDSL();
5556
}
5657

0 commit comments

Comments
 (0)