On 5/4/07, Jack L <[EMAIL PROTECTED]> wrote:
I use this to sort the facet field values against count in
reverse order in Python:
sorted(facet_field_values.items(), lambda x, y: cmp(x[1], y[1]), reverse = True)
FWIW, the key= parameter is generally more efficient for python 2.4+:
sorted(facet.
I use this to sort the facet field values against count in
reverse order in Python:
sorted(facet_field_values.items(), lambda x, y: cmp(x[1], y[1]), reverse = True)
Thursday, May 3, 2007, 6:18:05 PM, you wrote:
> We resort it in solr-ruby:
>def field_facets(field)
> facets = []
>