f.people.facet.sort=count should work.

Make sure you don't have a conflicting setting for that same field and attribute.

Does the "people" facet sort by count correctly with f.sort=index?

What are the attributes and field type for the "people" field?

-- Jack Krupansky

-----Original Message----- From: Christopher Gross
Sent: Tuesday, June 12, 2012 11:05 AM
To: solr-user
Subject: Different sort for each facet

In Solr 3.4, is there a way I can sort two facets differently in the same query?

If I have:

http://mysolrsrvr/solr/select?q=*:*&facet=true&facet.field=people&facet.field=category

is there a way that I can sort people by the count and category by the
name all in one query?  Or do I need to do that in separate queries?
I tried using "f.people.facet.sort=count" while also having
"facet.sort=index" but both came back in alphabetical order.

Doing more queries is OK, I'm just trying to avoid having to do too many.

-- Chris

Reply via email to