Skip to content

Commit dbd24db

Browse files
author
Oleksandr Iegorov
committed
ACP2E-68: Search terms queries via graphQL are not populated in popular search terms in admin
1 parent d8a81ac commit dbd24db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/Query/Search/QueryPopularity.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public function execute(ContextInterface $context, string $queryText, int $numRe
5757
if ($maxQueryLength && $this->string->strlen($queryText) > $maxQueryLength) {
5858
$queryText = $this->string->substr($queryText, 0, $maxQueryLength);
5959
}
60-
$query->loadByQueryText($queryText);
60+
//$query->loadByQueryText($queryText);
61+
$query->setQueryText($queryText);
6162
$store = $context->getExtensionAttributes()->getStore();
6263
$query->setStoreId($store->getId());
6364
$query->saveIncrementalPopularity();

0 commit comments

Comments
 (0)