lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "UpdateJSON" by YonikSeeley
Date Wed, 20 Jul 2011 17:01:11 GMT
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 '
  {

Mime
View raw message