Introduction
Mercur uses Algolia as a search engine to boost product search accuracy and serving trending/recommended items. The integration features auto product indexing, whenever any of the product attributes was changed or a new product review is created.Setup
In order to use Algolia, an account is needed. After registration, enterALGOLIA_APP_ID and ALGOLIA_API_KEY obtained from the Algolia dashboard into the .env file.
Configuration
See the full settings reference here!Events
In order to persist consistency between database and Algolia, every time any change in indexed entities happens an event is emitted, for example:algolia.products.changedalgolia.products.deleted
algolia.intermediate.fulfillment_set.changedalgolia.intermediate.service_zone.changedalgolia.intermediate.shipping_option.changedalgolia.intermediate.stock_location.changedalgolia.intermediate.inventory_item.changed