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 and retrieved are present in the update.

For an update to occur, only the uniqueKey id (as specified in your
schema.xml) has to be the same as the document you want to update.

Shortly, an update is like an add, (and performed the same way) except
that the added document was previously indexed. It simple gets
replaced by the update.

Hope that helps,

--
Tanguy

2010/12/16 Dennis Gearon <gear...@sbcglobal.net>:
> 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)
>
>  Dennis Gearon
>
>
> Signature Warning
> ----------------
> It is always a good idea to learn from your own mistakes. It is usually a 
> better
> idea to learn from others’ mistakes, so you do not have to make them yourself.
> from 'http://blogs.techrepublic.com.com/security/?p=4501&tag=nl.e036'
>
>
> EARTH has a Right To Life,
> otherwise we all die.
>
>

Reply via email to