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 "FAQ" by DanBolser
Date Thu, 09 Aug 2012 16:18:53 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "FAQ" page has been changed by DanBolser:
http://wiki.apache.org/solr/FAQ?action=diff&rev1=83&rev2=84

Comment:
added an example that wasn't trivial for me to work out

  See SolrLogging
  
  == I POSTed some documents, why don't they show up when I search? ==
- Documents that have been added to the index don't show up in search results until a commit
is done (one way is to POST a <commit/> message to the XML update handler). This allows
you to POST many documents in succession and know that none of them will be visible to search
clients until you have finished.
+ Documents that have been added to the index don't show up in search results until a commit
is done (one way is to POST a <commit/> message to the XML update handler). e.g.
+ 
+  curl http://my.host/solr/update --data '<commit/>' -H 'Content-type:text/xml; charset=utf-8'
+ 
+ 
+ This allows you to POST many documents in succession and know that none of them will be
visible to search clients until you have finished.
  
  == How can I delete all documents from my index? ==
  Use the "match all docs" query in a delete by query command: {{{<delete><query>*:*</query></delete>}}}

Mime
View raw message