: Is there any way I can group category information together? So that I
: know the category_id for the specific category_name?

when dealing with stored fields, Solr garuntees that the field values 
arereturned in the order they were indexed - so if you have a multivalue 
"cat_id" field and a multivalued "cat_name" field and you index the 
docs so that they "line up" (the first value in the cat_id" field is for 
the first value in the "cat_name" field) then you can trust that they'll 
still be aligned when you get the docs back later.

but that doesn't neccessarily help you for displaying facet counts for 
"cat_id" using the the "cat_name" labels ... the first page of results 
probably won't contain at least one doc from every category.

The simplest solution: don't facet on cat_id, facet on cat_name instead.

In general, this is where the limits of the "SimpleFacets" class come into 
play ... a more complex implementation would know about hierarchies or 
values, and labels for index values, and other metadata.



-Hoss

Reply via email to