Skip to content

Commit ed4bea8

Browse files
committed
lambda function need to use searchConfigString
1 parent 7ecbdc3 commit ed4bea8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PostgresEngine.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ protected function toVector(Model $model)
112112
$searchConfigString = $this->getSearchConfigString();
113113

114114
$select = $fields->keys()
115-
->map(function ($key) use ($model) {
115+
->map(function ($key) use ($model, $searchConfigString) {
116116
$vector = "to_tsvector($searchConfigString ?)";
117117
if ($label = $this->rankFieldWeightLabel($model, $key)) {
118118
$vector = "setweight($vector, '$label')";

0 commit comments

Comments
 (0)