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