The only two ways to influence facet order is by count and alphabetically. facet.sort=index will sort by alpha, the default is facet.sort=count
All that said, I still don't quite understand what you're asking for. Facets are simply a count of the documents that have unique values for, in your case, the "id" field. It doesn't make sense to sort the returned facets by some other field. You can facet on the other field and sort *that*. Sorting the documents returned is unrelated, but I don't think that's what you're asking... Or I completely miss the point... Best Erick On Thu, May 19, 2011 at 8:24 AM, Dmitry Kan <dmitry....@gmail.com> wrote: > Hi Erick, > > It is about ordering the facet information. The result set is empty via > rows=0. > > Here is the logics and example: > > Each doc has string field someStr and a date field associated with it, and > same doc id has same value of the date field. Question: is it possible to > sort the facet values given below on that date field? > > curl > http://localhost:8983/solr/select?q=someStr:network&facet=true&facet.field=id&facet.limit=1000&facet.mincount=1&rows=0 > > result excerpt: > > <lst name="facet_fields"> > <lst name="id"> > <int name="T-AS_1386229"> > 54 > </int> > <int name="T-AS_1386181"> > 45 > </int> > <int name="T-CP_1370095"> > 36 > </int> > <int name="T-AS_1377809"> > 25 > </int> > <int name="T-CP_1380207"> > 18 > </int> > <int name="T-CP_1373820"> > 11 > </int> > <int name="T-AS_1372073-1"> > 8 > </int> > <int name="T-AS_1367577"> > 6 > </int> > <int name="T-AS_1383141"> > 5 > </int> > <int name="T-AS_1383648-1"> > 5 > </int> > <int name="T-AS_1351183-1"> > 4 > </int> > </lst> > </lst> > > > Regards, > > Dmitry > > > > > On Wed, May 18, 2011 at 3:33 PM, Erick Erickson > <erickerick...@gmail.com>wrote: > >> Can you provide an example of what you are trying to do? Are you >> referring to ordering the result set or the facet information? >> >> Best >> Erick >> >> On Wed, May 18, 2011 at 7:21 AM, Dmitry Kan <dmitry....@gmail.com> wrote: >> > Hello list, >> > >> > Is it possible to sort on date field in a facet query in SOLR 3.1? >> > >> > -- >> > Regards, >> > >> > Dmitry Kan >> > >> >