From 15735a2dff8ebb96b8d889fefcf3ca52c0f52588 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Tue, 10 Dec 2024 14:30:52 +0100 Subject: [PATCH] added null check for query::query --- src/lib/Query/Common/QueryConverter/NativeQueryConverter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Query/Common/QueryConverter/NativeQueryConverter.php b/src/lib/Query/Common/QueryConverter/NativeQueryConverter.php index 759607c..529921b 100644 --- a/src/lib/Query/Common/QueryConverter/NativeQueryConverter.php +++ b/src/lib/Query/Common/QueryConverter/NativeQueryConverter.php @@ -67,7 +67,7 @@ public function __construct( public function convert(Query $query, array $languageSettings = []) { $params = [ - 'q' => '{!lucene}' . $this->criterionVisitor->visit($query->query), + 'q' => '{!lucene}' . ($query->query !== null ? $this->criterionVisitor->visit($query->query): ''), 'fq' => '{!lucene}' . ($query->filter !== null ? $this->criterionVisitor->visit($query->filter) : ''), 'sort' => $this->getSortClauses($query->sortClauses), 'start' => $query->offset,