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 2009/10/28 23:35:55 UTC

[Solr Wiki] Update of "UpdateXmlMessages" by YonikSeeley

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 YonikSeeley.
The comment on this change is: allowDups is also deprecated... use "overwrite".
http://wiki.apache.org/solr/UpdateXmlMessages?action=diff&rev1=21&rev2=22

--------------------------------------------------

  Note: multiple documents may be specified in a single `<add>` command.
  
  ==== Optional attributes for "add" ====
-    * `allowDups = "true" | "false"` &#8212; default is "false"
+    * `overwrite = "true" | "false"` &#8212; default is "true", meaning newer documents will replace previously added documents with the same uniqueKey.
     * `commitWithin = "(milliseconds)"` if the "commitWithin" attribute is present, the document will be added within that time. <!> [[Solr1.4]]
+ 
+    * (deprecated) `allowDups = "true" | "false"` &#8212; default is "false"
     * (deprecated) `overwritePending = "true" | "false"` &#8212; default is negation of allowDups 
     * (deprecated) `overwriteCommitted = "true"|"false"` &#8212; default is negation of allowDups 
-  
- The defaults for overwritePending and overwriteCommitted are linked to allowDups such that those defaults make more sense:
-    * If allowDups is '''false''' (overwrite any duplicates), it implies that overwritePending and overwriteCommitted are '''true''' by default.
-    * If allowDups is '''true''' (allow addition of duplicates), it implies that overwritePending and overwriteCommitted are '''false''' by default.
   
  ==== Optional attributes on "doc" ====
     * `boost = <float>`  &#8212; default is 1.0 (See Lucene docs for definition of boost.)