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 2011/07/20 19:01:11 UTC
[Solr Wiki] Trivial Update of "UpdateJSON" by YonikSeeley
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "UpdateJSON" page has been changed by YonikSeeley:
http://wiki.apache.org/solr/UpdateJSON?action=diff&rev1=5&rev2=6
Comment:
try to further clarify that duplicate names are legal
Please see the [[UpdateXmlMessages|documentation on XML updates]] for detailed descriptions of the commands.
Multiple commands may be contained in one message.
- Here is an example JSON update message demonstrating multiple update commands (note: comments are not legal JSON)
+ Here is an example JSON update message demonstrating multiple update commands (note: comments are not legal JSON, but duplicate names are legal)
{{{
{
"add": {
@@ -121, +121 @@
== Solr 3.1 Example ==
Solr 3.2 was the first version to support the array-of-JSONObject syntax, so in Solr 3.1 one needs to use duplicate names (the "add" tag)
- to add more than one document at once. This is valid JSON. Example:
+ to add more than one document at once. It is legal in JSON to have duplicate names. Example:
{{{
curl http://localhost:8983/solr/update/json -H 'Content-type:application/json' -d '
{