Skip to content

Can the category facet return all matching categories instead of a single level? #3779

@aligent-lturner

Description

@aligent-lturner

Is your question related to a problem? Please describe.
We have a requirement from a client that when performing a search, the category facet is displayed as a tree structure. We planned on doing that by comparing the returned category facets to a cached category tree and merging the two.
However, it appears that only a single level of categories is returned (the top level under the root categories) by the facet, regardless of the number of products.

My assumption is that this is intended so that customers can "drill down" themselves - if they filter by a top-level category, they would get the children of that category, etc.

But, Is there a way to make the category facet return all categories that have matching products (and ideally, exclude those with no results)?

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions