In order for a record to appear in multiple categories, you can create a hierarchicalCategories attribute and then either the categories, categoryId, or categoryPageId attributes to your records.
If you'd like a refresher on the schema of these attributes, you may view our Category Pages documentation.
The categories, categoryId, or categoryPageId attributes can contain multiple categories in an array:
"categoryPageId": [
"Clothing > Men",
"Clothing > Men > Pants",
"Clothing > Men > Pants > Joggers",
"Clothing > Men > Pants > Casual",
]For the hierarchicalCategories attribute, make sure to follow the schema and place the respective categories in the appropriate levels. If a level contains multiple categories, place those categories into an array within that level.
Example code:
"hierarchicalCategories": {
"lvl0": "Clothing",
"lvl1": "Clothing Men",
"lvl2": "Clothing Men Pants",
"lvl3": [
"Clothing Men Pants Joggers",
"Clothing Men Pants Casual"
],
},