PHPSolrClient

2010-12-16 Thread Dennis Gearon
First of all, it's a very nice piece of work. I am just getting my feet wet with Solr in general. So I 'am not even sure how a document is NORMALLY deleted. The library PHPDocs say 'add', 'get' 'delete', But does anyone know about 'update'? (obviously one can read-delete-modify-create)

Re: PHPSolrClient

2010-12-16 Thread Tanguy Moal
Hi Dennis, Not particular to the client you use (solr-php-client) for sending documents, think of update as an overwrite. This means that if you update a particular document, the previous version indexed is lost. Therefore, when updating a document, make sure that all the fields to be indexed

Re: PHPSolrClient

2010-12-16 Thread Erick Erickson
As Tanguy says, simply re-adding a document with the same uniqueKey will automatically delete/readd the doc. But I wanted to add a caution about your phrase read-delete-modify-create You only get back what you #stored#. So generally the update is done from the original source rather than the

Re: PHPSolrClient

2010-12-16 Thread Dennis Gearon
So just use add and overwrite. OK, thanks Dennis Gearon Signature Warning - - Original Message From: Tanguy Moal tanguy.m...@gmail.com To: solr-user@lucene.apache.org Sent: Thu, December 16, 2010 1:33:36 AM Subject: Re: PHPSolrClient Hi Dennis, Not particular to the client you use