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 2009/08/06 11:00:16 UTC

[Solr Wiki] Update of "UpdateXmlMessages" by akshayukey

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 akshayukey:
http://wiki.apache.org/solr/UpdateXmlMessages

The comment on the change is:
Adding missing context name 'solr' to the example for updating record via curl.

------------------------------------------------------------------------------
  You can use curl to send any of the above commands. For example:
  
  {{{
- curl http://<hostname>:<port>/update -H "Content-Type: text/xml" --data-binary '<add>
+ curl http://<hostname>:<port>/solr/update -H "Content-Type: text/xml" --data-binary '<add>
  <doc boost="2.5"> <field name="employeeId">05991</field>
  <field name="office" boost="2.0">Bridgewater</field> </doc> </add>'
  }}}
  
  {{{
- curl http://<hostname>:<port>/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'
+ curl http://<hostname>:<port>/solr/update -H "Content-Type: text/xml" --data-binary '<commit waitFlush="false" waitSearcher="false"/>'
  }}}
  
  Until a commit has been issued, you will not see any of the data in searches either on the master or the slave. After a commit has been issued, you will see the results on the master, then after a snapshot has been pulled by the slave, you will see it there also.