Return-Path: X-Original-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BCB4EE2A6 for ; Fri, 22 Feb 2013 18:28:28 +0000 (UTC) Received: (qmail 28162 invoked by uid 500); 22 Feb 2013 18:28:28 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 28085 invoked by uid 500); 22 Feb 2013 18:28:27 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 28071 invoked by uid 99); 22 Feb 2013 18:28:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 18:28:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 22 Feb 2013 18:28:14 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id B44F1BF5; Fri, 22 Feb 2013 18:27:54 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Fri, 22 Feb 2013 18:27:54 -0000 Message-ID: <20130222182754.26603.70811@eos.apache.org> Subject: =?utf-8?q?=5BSolr_Wiki=5D_Update_of_=22UpdateJSON=22_by_HossMan?= Auto-Submitted: auto-generated X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for chan= ge notification. The "UpdateJSON" page has been changed by HossMan: http://wiki.apache.org/solr/UpdateJSON?action=3Ddiff&rev1=3D14&rev2=3D15 Comment: array of json docs is alias for add, can't just send one json doc Example: {{{ curl http://localhost:8983/solr/update -H 'Content-type:application/json'= -d ' + [ { "id" : "TestDoc1", "title" : {"set":"test1"}, "revision" : {"inc":3}, "publisher" : {"add":"TestPublisher"} + }, + { + "id" : "TestDoc2", + "publisher" : {"add":"TestPublisher"} - }' + } + ]' }}} = =3D=3D=3D Atomic Updates with Optimistic Concurrency =3D=3D=3D @@ -158, +164 @@ Example: {{{ curl http://localhost:8983/solr/update -H 'Content-type:application/json'= -d ' + [ { "id" : "TestDoc1", "title" : {"set":"test1"}, "revision" : {"inc":3}, "publisher" : {"add":"TestPublisher"} "_version_" : {12345} - }' + } + ]' }}} =20