API aggregations for category
PHP Version
8.1
Shopware Version
6.6.3.0
Affected area / extension
Platform(Default)
Expected behaviour
Similar to product-listing, I expect the self-defined values or aggregations to appear under aggregations.
Actual behaviour
Currently I can only define my own aggregations under /store-api/product-listing, but not under /store-api/category.
How to reproduce
Payload:
{
"associations": {
"options": {
"associations": {
"group": {}
}
},
"media": {},
"seoUrls": {}
},
"order": "name-asc",
"aggregations": [
{
"name": "parent_options",
"type": "terms",
"field": "parentId",
"aggregation": {
"name": "parent_option_ids",
"type": "entity",
"definition": "property_group_option",
"field": "options.id"
}
}
]
}
for product-listing endpoint everything works as expected
/store-api/product-listing/<categoryId>
in my case i need the category endpoint for the whole page building process (listing with CMS)
/store-api/category/<categoryId>
but here the defined aggregation parent_options is not available within the result.
(cmsPage > sections > blocks > slots > data > listing > aggregations)
is this inteded or a bug?
We found the following existing issues which may help or are related to your topic:
- Aggregate Category filters via the salesChannel API
- API Missing mapping for product-category aggregate
- [github] Elasticsearch aggregation does not work in 6.2.2
- Elasticsearch aggregation does not work in 6.2.2
- Information Disclosure via Store-API Category endpoint
- Store api product route does not return CategoryTree anymore
- Some aggregations do not work on Store-Api /product/{productId}
- Aggregation by products fails in Category Repository when EnterpriseSearch plugin is enabled
- Hydrating elasticsearch aggregation results with nested properties
[public] Shopware automated response: This issue is linked to the internal issue https://shopware.atlassian.net/browse/NEXT-38031.
This link is only intended for Shopware employees and for internal use only.
[created from NEXT-38031, comment 489687]
[public] Hello,
Within our company roadmap and work capacity, we try to address each bug or improvement request but admit that not each one will be resolved. To continue our culture of honesty and openness, we are closing this issue to focus on our roadmap on behalf of all Shopware users.
If you feel like this issue is still impacting you, please create a new issue and let us know. Thank you again for your valuable feedback.
[created from NEXT-38031, comment 549910]