Skip to content

Commit

Permalink
fix: constant_score to use filter instead of query
Browse files Browse the repository at this point in the history
  • Loading branch information
jmosul committed Jan 24, 2022
1 parent d70f7e0 commit 1dfa60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/QueryGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ protected function compileWhereSearch(Builder $builder, array $where): array
if (! empty($where['options']['constant_score'])) {
$query = [
'constant_score' => [
'query' => $query,
'filter' => $query,
],
];
}
Expand Down

0 comments on commit 1dfa60e

Please sign in to comment.