Issue
Instantsearch enabled on category pages, when reloaded with a parameter set from instantsearch facets like ?color=Blue, elasticsearch will throw a bad request error as it cannot retrieve the query correctly. Need to translate the values over to their optionID to get this to work.
Result
Created a plugin for Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection::addFieldToFilter() method to change the option label value to the option ID. Also added a builder to pass facets from Algolia into the aggregator for the replaced buckets.
Issue Instantsearch enabled on category pages, when reloaded with a parameter set from instantsearch facets like ?color=Blue, elasticsearch will throw a bad request error as it cannot retrieve the query correctly. Need to translate the values over to their optionID to get this to work.
Result Created a plugin for Magento\CatalogSearch\Model\ResourceModel\Fulltext\Collection::addFieldToFilter() method to change the option label value to the option ID. Also added a builder to pass facets from Algolia into the aggregator for the replaced buckets.