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 JanHoydahl
Date Tue, 06 Sep 2011 16:35:53 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 JanHoydahl:
http://wiki.apache.org/solr/UpdateXmlMessages?action=diff&rev1=32&rev2=33

Comment:
Added info about commitWithin as an Update parameter

  <optimize waitSearcher="false"/>
  }}}
  
- === Passing commit parameters as part of the URL ===
+ === Passing commit and commitWithin parameters as part of the URL ===
  
- Update handlers can also get commit related parameters as part of the update URL.  This
example adds a small test document and causes a commit to happen after:
+ Update handlers can also get commit related parameters as part of the update URL.  This
example adds a small test document and causes an explicit commit to happen immediately after:
  {{{
  curl http://localhost:8983/solr/update?commit=true -H "Content-Type: text/xml" --data-binary
'<add><doc><field name="id">testdoc</field></doc></add>'
  }}}
@@ -96, +96 @@

  This example will cause the index to be optimized down to at most 10 segments, but won't
wait around until it's done (waitFlush=false):
  {{{
  curl 'http://localhost:8983/solr/update?optimize=true&maxSegments=10&waitFlush=false'
+ }}}
+ 
+ <!> [[Solr3.4]] 
+ This example adds a small test document with a commitWithin instruction which tells Solr
to make sure the document is committed no later than 10 seconds later (this method is generally
preferred over explicit commits):
+ {{{
+ 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" ===

Mime
View raw message