lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <yo...@apache.org>
Subject Re: facet.sort does not work in python output
Date Thu, 10 May 2007 01:00:39 GMT
On 5/3/07, Mike Klaas <mike.klaas@gmail.com> wrote:
> On 5/3/07, Jack L <jlist9@yahoo.ca> 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 http://wiki.apache.org/solr/SolJSON
which is the "base" for both Python and Ruby.

The default is json.nl=flat which results in alternating term and
count in a flat array.

"facet_fields":{
        "cat":[
         "electronics",3,
         "card",2,
         "graphics",2,
         "music",1]}},

-Yonik

Mime
View raw message