: Now, instead we want to browse the products by category. This also works 
: since we can simply find all products for category A. So, we show them. 
: Now, we also want to show a list of categories underneath (in the tree 
: structure) that category, and, a count of items in each. Just the 
: subcategory level, not levels below it.

how are you modeling the tree nature of your cateory taxonomy when you 
index the terms?  if you index each category id as the breadcrumb of all 
it's ancestor categories and the "depth" of the category in the tree, you 
can use facet.prefix to only see the children of a specified category.  
See slides #32-35...

https://webselfservice.alaskaair.com/checkinweb/default.aspx?language=

: So, right now, we do this by doing a solr query with multiple 
: facet.query=eachsubcategory, and, q=eachsubcategory with space between 
: each one. This does exactly what we want, i.e., the resulting facets 
: have a count for only the specific subcategories we want counts for.

: The results though are a list of the counts in the same order as the 
: facet.query parms. I want them ordered by count. I understand it's 
: ordered that way intentionally. So, instead, I want to find another 
: syntax to do the same thing, except, return in count order.

Why don't you just sort them on the client side? There's no efficiency 
gained by having the facet.query results sorted on the server side 
(because they all come back, there's no cut-off like there is with 
facet.field)

-Hoss

Reply via email to