From 1dfa60e947bc0d7c4101cf069ac70335f17f2e55 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 24 Jan 2022 14:11:46 +0000 Subject: [PATCH] fix: constant_score to use filter instead of query --- src/QueryGrammar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QueryGrammar.php b/src/QueryGrammar.php index 6f8818a..475dab3 100644 --- a/src/QueryGrammar.php +++ b/src/QueryGrammar.php @@ -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, ], ]; }