Sorting the result set or the facets? For the facets there is facet.sort=index (lexicographically) and facet.sort=count. So maybe you are asking if you can sort by index, but reversed? I don't think this is possible, and it's a good question. I wanted to chime in on this one because I wanted my own facet.sort=rank, but there is no nice pluggable way to implement a new sort. I'd love to be able to add a Comparator for a new sort. I ended up subclassing FacetComponent to sort of hack on the rank sort implementation but it isn't very pretty and I'm sure not as efficient as it could be if FacetComponent was designed for more sorts.
Ryan On Thursday, April 2, 2015, Derek Poh <d...@globalsources.com> wrote: > Is sorting on facet index supported? > > I would like to sort on the below facet index > > <lst name="P_SupplierRanking"> > <int name="0">14</int> > <int name="1">8</int> > <int name="2">12</int> > <int name="3">349</int> > <int name="4">81</int> > <int name="5">8</int> > <int name="6">12</int> > </lst> > > to > > <lst name="P_SupplierRanking"> > <int name="6">12</int> > <int name="5">8</int> > <int name="4">81</int> > <int name="3">349</int> > ... > ... > ... > </lst> > > -Derek >