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 akshayukey
Date Thu, 06 Aug 2009 09:00:16 GMT
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.

Mime
View raw message