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,