lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Klaas" <>
Subject Re: facet.sort does not work in python output
Date Fri, 04 May 2007 00:10:46 GMT
On 5/3/07, Jack L <> wrote:
> The Python output uses nested dictionaries for facet counts.
> I read it online that Python dictionaries do not preserve order.
> So when a string is eval()'d, the sorted order is lost in the
> generated Python object. Is it a good idea to use list to wrap
> around the dictionary? This is only needed for the fields, sorted
> by counts.

This might be fixed in the future, but for now, either resort on the
client-side (a one- or zero-liner), or specify (which
affects the whole python response structure... probably not

There is some past discussion on the list if you search the archives.


View raw message