You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With mage-os/mageos-async-events installed, navigating to "Stores > Asynchronous Events > Logs" crashes the page with an error.
1 exception(s):
Exception #0 (RuntimeException): Search client is not set.
Exception #0 (RuntimeException): Search client is not set.
#1 Magento\Elasticsearch\SearchAdapter\ConnectionManager->getConnection() called at [vendor/mage-os/mageos-async-events/Model/Indexer/LuceneSearch.php:52]
#2 MageOS\AsyncEvents\Model\Indexer\LuceneSearch->prepare() called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:164]
#3 Magento\Framework\View\Layout\Generator\UiComponent->prepareComponent(&MageOS\AsyncEvents\Model\Indexer\LuceneSearch#000000000000065c0000000000000000#) called at [vendor/magento/framework/View/Layout/Generator/UiComponent.php:161]
...
Investigating this shows that the elasticsuite client has not been added to the \Magento\Elasticsearch\ElasticAdapter\Model\Client\ClientFactoryProxy for resolution.
Question
Are there plans to implement a client that implements \Magento\AdvancedSearch\Model\Client\ClientFactoryInterface and the \Magento\AdvancedSearch\Model\Client\ClientOptionsInterface? Were there any previous attempts where issues arose?
I figured I'd open this as a question since the AsyncEvents module is using the ElasticSearch implementation directly, which appears to have a fallback in place if the opensearch engine is used. I was going to see about swapping out the implementation there and using the \Magento\AdvancedSearch\Model\Client\ClientResolver to hopefully get these two modules working together, but I'd need an implementation of the \Magento\AdvancedSearch\Model\Client\ClientFactoryInterface and the \Magento\AdvancedSearch\Model\Client\ClientOptionsInterface to wire this up.
I'm also quite new to the legacy implementation of ElasticSearch, so I may be missing something altogether on the implementation approach. 🙂
Issue
With
mage-os/mageos-async-events
installed, navigating to "Stores > Asynchronous Events > Logs" crashes the page with an error.Investigating this shows that the
elasticsuite
client has not been added to the\Magento\Elasticsearch\ElasticAdapter\Model\Client\ClientFactoryProxy
for resolution.Question
Are there plans to implement a client that implements
\Magento\AdvancedSearch\Model\Client\ClientFactoryInterface
and the\Magento\AdvancedSearch\Model\Client\ClientOptionsInterface
? Were there any previous attempts where issues arose?I figured I'd open this as a question since the AsyncEvents module is using the ElasticSearch implementation directly, which appears to have a fallback in place if the
opensearch
engine is used. I was going to see about swapping out the implementation there and using the\Magento\AdvancedSearch\Model\Client\ClientResolver
to hopefully get these two modules working together, but I'd need an implementation of the\Magento\AdvancedSearch\Model\Client\ClientFactoryInterface
and the\Magento\AdvancedSearch\Model\Client\ClientOptionsInterface
to wire this up.I'm also quite new to the legacy implementation of ElasticSearch, so I may be missing something altogether on the implementation approach. 🙂
Preconditions
Magento
v2.4.7-p2
Elasticsuite
v2.11.10
mage-os/mageos-async-events
v4.0.4
The text was updated successfully, but these errors were encountered: