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 YonikSeeley
Date Mon, 02 Jan 2012 16:22:06 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 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:
  

Mime
View raw message