Hey everyone! I have a question regarding my `pro...
# community-help
i
Hey everyone! I have a question regarding my
product
collection schema and the ideal/correct way to store my specifications. I am currently using Next.js, React, and Instantsearch.js with Cursor AI (Claude Sonnet 3.5) to help me as I'm a product designer with 3 years of web dev experience and am building this solo. --- When I first started out, my understanding is that a specifications object with nested fields was the way store a products specifications. > { > _"specifications"_: [ > { > _"name"_: "rug_pad_included", > _"value"_: ["Yes"] > }, > { > _"name"_: "weave_type", > _"value"_: ["Hand-woven"] > } > ] > } However, Cursor suggested when I was trying to troubleshoot category-specific filters to use the approach below. > >
Copy code
{
>       "facet": true,
>       "index": true,
>       "infix": false,
>       "locale": "",
>       "name": "spec.rug_pad_included",
>       "optional": true,
>       "sort": false,
>       "stem": false,
>       "store": true,
>       "type": "string[]"
>     },
>     {
>       "facet": true,
>       "index": true,
>       "infix": false,
>       "locale": "",
>       "name": "spec.weave_type",
>       "optional": true,
>       "sort": false,
>       "stem": false,
>       "store": true,
>       "type": "string[]"
>     },
>     {
>       "facet": true,
>       "index": true,
>       "infix": false,
>       "locale": "",
>       "name": "spec.removable_top",
>       "optional": true,
>       "sort": false,
>       "stem": false,
>       "store": true,
>       "type": "string[]"
>     },
>     {
Now I still haven't figured out category-specific filters yet but would like to know the best practice for storing my specifications in a product. Thanks!