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 7ecbdc3 commit ed4bea8Copy full SHA for ed4bea8
src/PostgresEngine.php
@@ -112,7 +112,7 @@ protected function toVector(Model $model)
112
$searchConfigString = $this->getSearchConfigString();
113
114
$select = $fields->keys()
115
- ->map(function ($key) use ($model) {
+ ->map(function ($key) use ($model, $searchConfigString) {
116
$vector = "to_tsvector($searchConfigString ?)";
117
if ($label = $this->rankFieldWeightLabel($model, $key)) {
118
$vector = "setweight($vector, '$label')";
0 commit comments