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] Update of "UpdateXmlMessages" by ShalinMangar
Date Sun, 23 Dec 2012 10:14:46 GMT
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`:
     {{{

Mime
View raw message