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: mention params as part of URL.
http://wiki.apache.org/solr/UpdateXmlMessages?action=diff&rev1=22&rev2=23

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

  <optimize waitFlush="false" waitSearcher="false"/>
  }}}
  
+ === Passing commit 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:
+ {{{
+ curl http://localhost:8983/solr/update?commit=true -H "Content-Type: 
text/xml" --data-binary '<add><doc><field name="id">testdoc</field></doc></add>'
+ }}}
+ 
+ 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'
+ }}}
+ 
  === "rollback" ===
  <!> [[Solr1.4]]
  

Reply via email to