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 Jim Musil
Date Thu, 13 Sep 2012 19:36:35 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 Jim Musil:
http://wiki.apache.org/solr/UpdateXmlMessages?action=diff&rev1=39&rev2=40

     * `boost = <float>` &#8212; default is 1.0 (See Lucene docs for definition
of boost.)
       * NOTE: make sure norms are enabled (omitNorms="false" in the schema.xml) for any fields
where the index-time boost should be stored.
  
- Example of "add" with optional attributes:
+ Example of "add" with optional `boost` attribute:
  
     {{{
  <add>
@@ -55, +55 @@

      <field name="office" boost="2.0">Bridgewater</field>
    </doc>
  </add>
+    }}}
+ 
+    * `update = "add" | "set" | "inc"` &#8212; for atomic updating and adding of fields
<!> [[Solr4.0]]
+ 
+ Example of "add" with optional `update` attribute:
+ 
+    {{{
+ <add>
+   <doc>
+     <field name="employeeId">05991</field>
+     <field name="office" update="set">Walla Walla</field>
+     <field name="skills" update="add">Python</field>
+ </add>
  }}}
  
  === "commit" and "optimize" ===

Mime
View raw message