Dear Wiki user,

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

The following page has been changed by ChrisHarris:
http://wiki.apache.org/solr/UpdateXmlMessages

The comment on the change is:
Noting that delete by query will be faster in 1.3

------------------------------------------------------------------------------
  }}}
  
  === "delete" by ID and by Query ===
- Delete by id uses the uniqueKey field declared in the schema (in these 
examples, employeeId).
- Delete by id is much more efficient than delete by query.
+ 
+ Delete by id deletes the document with the specified ID. (ID here means the 
value of the uniqueKey field declared in the schema (in these examples, 
employeeId).
+ 
+ Delete by query deletes all the documents that match the specified query.
+ 
  Example:
     {{{
  <delete><id>05991</id></delete>
  <delete><query>office:Bridgewater</query></delete>
  }}}
+ 
+ In Solr 1.2, delete query is ''much'' less efficient than delete by id, 
because Solr has to do much of the commit logic each time it receives a delete 
by query request. In Solr 1.3, however, most of the overhead will have been 
removed.
  
  ==== Optional attributes for "delete" ====
  

Reply via email to