You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/06/23 23:52:24 UTC
[Solr Wiki] Update of "SolJSON" by HossMan
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The following page has been changed by HossMan:
http://wiki.apache.org/solr/SolJSON
The comment on the change is:
TOC
------------------------------------------------------------------------------
## page was renamed from SolAjax
+
+ = JSON Response Writer =
+
+ [[TableOfContents]]
+
- = JSON Query Response Format =
+ == JSON Query Response Format ==
Solr can return the result of a query in [http://www.json.org/ JSON] rather than the default XML format. This is enabled via the request parameter {{{wt=json}}}
Variations of the JSON format are supported for [wiki:SolPython Python] and [wiki:SolRuby Ruby].
@@ -105, +110 @@
== JSON specific parameters ==
* wt=json - choose JSON output for the response
- * json.nl - This parameter controls the output format of !NamedLists, where order is more important than access by name. NamedList is currently used for field faceting data.
+ * json.nl - This parameter controls the output format of !NamedLists, where order is more important than access by name. !NamedList is currently used for field faceting data.
* json.nl=flat - the default. !NamedList is represented as a flat array, alternating names and values: {{{[name1,val1, name2,val2]}}}
* json.nl=map - !NamedList is represented as a JSON object. Although this is the simplest mapping, a !NamedList can have optional keys, repeated keys, and preserves order. Using a JSON object (essentially a map or hash) for a !NamedList results in the loss of some information.
* json.nl=arrarr - represent a !NamedList as an array of two element arrays {{{[[name1,val1], [name2, val2], [name3,val3]]}}}