fix: Update algolia.md (#4734)

## Fix bug where products are not added to Algolia index

Previously, the id property was used as the unique identifier for products in the Algolia index. However, Algolia requires the use of the objectID property as the unique identifier. 

This commit updates the transformer function for the products index to use the objectID property instead of the id property, ensuring that products are properly added to the Algolia index.
This commit is contained in:
Pedro Tigre
2023-08-11 21:45:19 +00:00
committed by GitHub
parent 1d2637572b
commit 6dd3056776
+1 -1
View File
@@ -177,7 +177,7 @@ const plugins = [
],
},
transformer: (product) => ({
id: product.id,
objectID: product.id,
// other attributes...
}),
},