On 5/10/07, Gunther, Andrew <[EMAIL PROTECTED]> wrote:
Anyone notice an error in the JSON response when requesting facets.

The response I get is:
{"facet_queries":{},"facet_fields":{"subject":["Landscape",10335,"River"
,1767,"Mountain",1278,"Architecture",1184] }}

It seems like the JSONArray subject should yield a JSONObject with
name,value pairs like:

{"subject":[{"Landscape":10335,"River":1767,"Mountain":1278,"Architectur
e":1184}] }

I've checked the bug list but nothing is showing up.
Anyone using JSON?

The default was changed because many JSON clients don't maintain order
of key/value pairs in a JSONObject.

See http://wiki.apache.org/solr/SolJSON

If you wish to get a JSON object for "ordered" key/value pairs like
facet counts,
pass in json.nl=map

-Yonik

Reply via email to