On Tue, Aug 12, 2008 at 1:48 AM, Norberto Meijome <[EMAIL PROTECTED]> wrote:
> What happens if I issue:
>
> <delete><id>1</id></delete>
> <add><doc><id>1</id><name>new</name></doc>
> <commit/>
>
> will delete happen first, and then the add, or could it be that the add 
> happens before delete

Doesn't matter... it's an implementation detail.  Solr used to buffer
deletes, and if it crashed at the right time one could get duplicates.
 Now, Lucene does the buffering of deletes (internally lucene does the
adds first and buffers the deletes until a segment flush) and it
should be impossible to see more than one "1" or no "1" at all.

-Yonik

Reply via email to