saleor-apps-redis_apl/.changeset/friendly-planets-care.md
Lukasz Ostrowski 2cb7e5edee
Improve Search/Algolia mappings (#827)
* parse metadata before sending to algolia

* variants mapping

* extract metadata mapping

* Changeset

* rename field
2023-07-31 12:08:05 +02:00

9 lines
677 B
Markdown

---
"saleor-app-search": minor
---
Improved attributes mapping. Now Algolia will receive better products data:
- Added `otherVariants` field which is *an array of variant id strings*. It will only contain other variants, so if the array is empty, it means the variant is the only one. It can be quickly used to count alternative variants or to reference them by ID.
- Added `variantMetadata` field. Now `metadata` contains data for product parent and `variantMetadata` for each variant.
- Improved JSON fields mapping. Now json-like fields will be sent to Algolia as structure jsons, not strings. This include: `description`, `metadata`, `variantMetadata`, `otherVariants`.