It would be nice to get this doc added to the Update wiki:

http://wiki.apache.org/solr/UpdateXmlMessages

-- Jack Krupansky

-----Original Message----- From: jimtronic
Sent: Thursday, September 13, 2012 2:41 PM
To: solr-user@lucene.apache.org
Subject: Re: How to post atomic updates using xml

Actually, the correct method appears to be this:

an atomic update in JSON:
{
 "id"       : "book1",
 "author"   : {"set":"Neal Stephenson"}
}

the same in XML:

<add>
   <doc>
     <field name="id">book1</field>
     <field name="author" update="set">Neal Stephenson</field>
   </doc>
</add>

Jim



--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-post-atomic-updates-using-xml-tp4007323p4007517.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to