Algolia is a hosted search engine that's integrated with Frontastic.
We're using version 3.0 of the Algolia library.
You need to set
productId as your
attributeForDistinct either through the index creation or from the Algolia dashboard. The
distinct default value should be
false. See the Algolia documentation on attributeForDistinct for more information.
The item variation feature that Algolia provides (item variations) groups variants by product but will display only 1 variant (the most relevant) and hide the rest. You can find out more information in their documentation.
- You'll need to have an Algolia account
- You'll need to create an index in Algolia with all your products and have the below properties for each variant:
productId(variant grouping identifier)
You can also optionally store:
For more information on adding your data to Aloglia, see their documentation.
To access the APIs for Algolia, you'll need the below configuration added to your
project.yml (see the project.yml article for more information):
configuration: productSearch: engine: algolia algolia: appId: OurAppID # this is your unique app ID for Algolia appKey: OurAppKey # this is your unique app key for Algolia indexName: Frontastic_search # this is the name of your index you have created for your data — you can only use 1 index
See the Algolia ProductSearchAPI docs for arguments, types, and other information.
query (by query string)
query (by category)
query (by SKU) (deprecated)
query (by SKUs)
query (by productId) (deprecated)
query (by productIds)
query (by productType)
query (by filters)
This integration is limited to products only.
You can't perform any sorting at query time.
Updated 3 months ago