Fatal error: Uncaught TypeError: Return value of Magento\Elasticsearch7\Model\Client\Elasticsearch::query() must be of the type array, string returned in /var/www/html/web/vendor/magento/module-elasticsearch-7/Model/Client/Elasticsearch.php:345
Stack trace:
#0 /var/www/html/web/vendor/magento/module-elasticsearch/Model/DataProvider/Base/Suggestions.php(243): Magento\Elasticsearch7\Model\Client\Elasticsearch->query(Array)
#1 /var/www/html/web/vendor/magento/module-elasticsearch/Model/DataProvider/Base/Suggestions.php(141): Magento\Elasticsearch\Model\DataProvider\Base\Suggestions->fetchQuery(Array)
#2 /var/www/html/web/vendor/magento/module-elasticsearch/Model/DataProvider/Base/Suggestions.php(97): Magento\Elasticsearch\Model\DataProvider\Base\Suggestions->getSuggestions(Object(Magento\Search\Model\Query))
#3 /var/www/html/web/vendor/magento/module-advanced-search/Model/SuggestedQueries.php(66): Magento\Elasticsearch\Model\DataProvider\Base\Suggestions->getItems(Object(Magento\Search\Model\Query))
#4 /var/www/html/web/vend in /var/www/html/web/vendor/magento/module-elasticsearch-7/Model/Client/Elasticsearch.php on line 345