On 5/3/07, Mike Klaas [EMAIL PROTECTED] wrote:
On 5/3/07, Jack L [EMAIL PROTECTED] wrote:
The Python output uses nested dictionaries for facet counts.
This might be fixed in the future
It's fixed in the current development version (future 1.2), already.
See
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+:
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
On 5/3/07, Jack L [EMAIL PROTECTED] 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