I have Magento 2.4.1 and the latest version: 2.0.39 of the mirasvit/module-search-ultimate module. Also I am using Elasticsearch 7.

Issue description:

The ajax request made on the search result: searchautocomplete/ajax/suggest?_q={randomString}&o={randomString}&q={randomString}doesn't return any results. I did some digging and I've noticed that this method: \Mirasvit\Search\Index\Magento\Catalog\Product\InstantProvider::getItems :

public function getItems(int $storeId, int $limit): array
    /** @var \Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection $collection */
    $collection = $this->getCollection($limit)

    $this->prepareRatingData($collection->getAllIds(), $storeId);

    $items = [];

    foreach ($collection as $product) {
        $items[] = $this->mapProduct($product, $storeId);

    return $items;

if you do a echo $collection->getSize() it returns you zero results, although if i print the query collection (raw query) and execute it in the mysql console, i m getting the desired results. Right now I am just getting this message : Sorry, nothing has been found for {randomString}. Did anyone encouter the same or similar issue ? Or maybe have an idea how to debug this ? I would really appreciate any help or ideas.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.