Reputation: 105
I'm trying to find a solution to make a subfacet list for some facets.
I have a clothes size on some products and they are stored in solr
"Size_both":"W30L30", "Size_width":"W30", "Size_length":"L30"
I wish to generate a list of subfacet for each width:
W30 (8)
W32 (2)
etc
Anyone know how to accomplish this? I thought I could do this with group, but that didn't work.
Upvotes: 2
Views: 1129
Reputation: 3852
Use Facet Pivoting to achieve desired result:
Try Below Query:
http://<host_name>:<port>/solr/<core_name>/select?q=*:*&rows=20&wt=json&indent=true&facet=true&facet.pivot=Size_width,Size_length
Upvotes: 2
Reputation: 9789
Solr pivot faceting should do what you are asking for. If it does, you may want to be more precise on what specifically fails.
Upvotes: 3