On 2/5/07, Erik Hatcher <[EMAIL PROTECTED]> wrote:
With the example application and data, this causes an exception (just
adding &wt=json to an example from the facet wiki page):

Fixed. It was a bug in the new json.nl=flat format.  A null key is now written
as a null.

http://localhost:8983/solr/select?q=ipod&rows=0&facet=true&facet.limit=-1&facet.field=cat&f.cat.facet.missing=true&facet.mincount=1&facet.field=inStock&wt=json&indent=on

{
"responseHeader":{
 "status":0,
 "QTime":140,
 "params":{
        "wt":"json",
        "facet.limit":"-1",
        "rows":"0",
        "facet":"true",
        "facet.field":[
         "cat",
         "inStock"],
        "f.cat.facet.missing":"true",
        "facet.mincount":"1",
        "indent":"on",
        "q":"ipod"}},
"response":{"numFound":3,"start":0,"docs":[]
},
"facet_counts":{
 "facet_queries":{},
 "facet_fields":{
        "cat":[
         "connector",2,
         "electronics",3,
         "music",1,
         null,0],
        "inStock":[
         "false",2,
         "true",1]}}}

-Yonik

Reply via email to