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/01/02 17:22:06 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:
http://wiki.apache.org/solr/UpdateXmlMessages?action=diff&rev1=36&rev2=37

Comment:
add prepareCommit

  curl http://localhost:8983/solr/update?commitWithin=10000 -H "Content-Type: text/xml" --data-binary '<add><doc><field name="id">testdoc</field></doc></add>'
  }}}
  
- === "rollback" ===
- <!> [[Solr1.4]]
- 
- Example:
-    {{{
- <rollback/>
- }}}
-  
- The rollback command rollbacks all add/deletes made to the index since the last commit. It neither calls any event listeners nor creates a new searcher.
  
  === "delete" documents by ID and by Query ===
  
@@ -152, +143 @@

     * (deprecated) `fromPending = "true" | "false"`  &#8212; default is "true" 
     * (deprecated) `fromCommitted = "true" | "false"`  &#8212; default is "true"
  
+ === "rollback" ===
+ <!> [[Solr1.4]] Expert:
+ 
+ Example:
+    {{{
+ <rollback/>
+ }}}
+  
+ The rollback command rollbacks all add/deletes made to the index since the last commit. It neither calls any event listeners nor creates a new searcher.
+ This is an expert-level API that should only be used if the application is taking complete responsibility for update concurrency, replication, and sharding.
+ 
+ === "prepareCommit" ===
+ <!> [[Solr4.0]] Expert:
+ 
+ The prepareCommit command is an expert-level API that calls Lucene's IndexWriter.prepareCommit().
+ 
+ Example:
+ {{{
+ curl 'http://localhost:8983/solr/update?prepareCommit=true'
+ }}}
+ 
+ 
  === Updating a Data Record via curl ===
  You can use curl to send any of the above commands. For example: