Open drpayyne opened 4 years ago
Hello @drpayyne !
The module's purpose is the help with backend rendering by replacing the results from elasticsearch with the ones returned by Algolia. With that being the case, the attributes in the layered navigation rendered in the frontend are trying to be returned on the frontend. Are there any product attributes set to display as a filter in Magento that aren't set as facet attributes for Algolia?
I'm reviewing the module now for a fix. Will follow up with a PR or an update as soon as we learn more. Let us know about your settings! Thanks!
So this doesn’t involve the flows of indexing or Algolia quick search?
Sure, I’ll check my settings and get back to you, @bsuravech.
Hi @bsuravech, I ran a query in Magento to check the number of filterable product attributes using the query SELECT attribute_code FROM eav_attribute WHERE attribute_id IN( SELECT attribute_id FROM
catalog_eav_attributeWHERE is_filterable_in_search = 1 )
and got the count as 222. Whereas we have only 9 attributes configured as facets under Magento Admin > Stores > Configuration > Algolia Search > Instant Search Results Page > Facets. Is this what you had asked or have I misunderstood? Thanks.
Hello!
I have installed this module with a local Magento v2.3.1 instance and also have a local ES cluster v6.7.2 configured. I'm able to index everything properly and instance search works as well. But the category page and search page breaks. How do I work around this issue? Also, if anyone could explain what this module actually does and what flows it affects, that would be great. Thanks!
Upon analysis of the following stack trace (truncated, due to redundant data), I noticed that
\Magento\Elasticsearch\SearchAdapter\Aggregation\Builder\Term::build
expects anaggregations
field in the$queryResult
array, whereas it has documents and ahits
field which contains all the documents again. This$queryResult
's origin can be traced back to fetching documents from Algolia at https://github.com/algolia/algoliasearch-magento-2-es-compatibility/blob/master/Adapter/AlgoliaElasticSearch5Adapter.php#L80 and then transformed into Elasticsearch acceptable.