On Fri, Mar 14, 2008 at 11:31 AM, Brian Whitman
<[EMAIL PROTECTED]> wrote:
>  Where within Solr is uniqueness enforced? I'd like to at least put
>  some debug checking in there.

During the add (in DirectUpdateHandler2) docs are kept track of, and
during a commit they are checked for dups.  That code has been very
well tested though, and I've only seen duplicates on a JVM
crash/restart.  That's because docs are added to the index, but Solr
never gets a chance to remove the duplicates (and that info is only
kept in RAM).

Lucene can now handle this (updating) in an atomic fashion, so we
should probably start using that.

-Yonik

Reply via email to