feat(medusa-plugin-algolia): Revamp Algolia search plugin (#3510)
This commit is contained in:
1 parent
ef5ef9f5a2
commit
74bc4b16a0
43 files changed
+518
-454
No files matched your search
@@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user