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 2012/12/23 11:14:46 UTC

[Solr Wiki] Update of "UpdateXmlMessages" by ShalinMangar

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "UpdateXmlMessages" page has been changed by ShalinMangar:
http://wiki.apache.org/solr/UpdateXmlMessages?action=diff&rev1=42&rev2=43

Comment:
Added details on updating multiple values and to delete a field

      <field name="skills" update="add">Python</field>
  </add>
  }}}
+ 
+ Example of "add" with optional `update` attribute to set multiple values on a multi-valued field:
+    {{{
+ <add>
+   <doc>
+     <field name="employeeId">05991</field>
+     <field name="skills" update="set">Python</field>
+     <field name="skills" update="set">Java</field>
+     <field name="skills" update="set">Jython</field>
+ </add>
+ }}}
+ 
+ Example of "add" with optional `update` attribute to set a field to null (i.e. delete a field):
+    {{{
+ <add>
+   <doc>
+     <field name="employeeId">05991</field>
+     <field name="skills" update="set" null="true" />
+ </add>
+ }}}
+ 
  
  <!> Important: In order to use atomic updating, you need to have an `updateLog` configured in your `solrconfig.xml`:
     {{{