We have a specific requirement in sxa search, we want to create a facet based on datasource selected from one of the treelist field which hold some node from content tree, for example Article and Product node. So we need Article and Product in facet and based on selection we want to show the children item in search. Let say if user select Article node then in search result show all children node of Article.
Let say All items under specific node which selected in treelist but how can we make it as facet. Assume we have below content tree structure :
Home
- Products
- Product 1
- Product 2
- Articles
- Article 1
- Article 2
- Events
- Event1
- Event2
If we select below node from treelist for facet source : Products Articles
Facet must be look like
Section (facet title) Products Articles
Assume if user select "Products" then search result must be:
Product 1 Product 2 Suggestions will be appreciated :)