feat(medusa-plugin-algolia): Revamp Algolia search plugin (#3510)

This commit is contained in:
Oliver Windall Juhl authored and GitHub committed 2023-03-22 12:55:26 +01:00
1 parent ef5ef9f5a2
commit 74bc4b16a0
43 files changed
+518 -454

No files matched your search

+7 -4
View File
@@ -8,14 +8,17 @@ Learn more about how you can use this plugin in the [documentaion](https://docs.
```js
{
application_id: "someId",
admin_api_key: "someApiKey",
applicationId: "someId",
adminApiKey: "someApiKey",
settings: {
[indexName]: [algolia settings passed to algolia's `updateSettings()` method]
// example
products: {
searchableAttributes: ["title", "description", "variant_sku", "type_value"],
attributesToRetrieve: ["title", "description", "variant_sku", "type_value"],
indexSettings: {
searchableAttributes: ["title", "description", "variant_sku", "type_value"],
attributesToRetrieve: ["title", "description", "variant_sku", "type_value"],
}
transformer: (product: Product) => ({ id: product.id })
}
}
}