If you mean just throw the new document on the floor if
the index already contains a document with that key, I don't
think you can do that. You could write a custom updateHandler
that checks first to see whether the particular uniqueKey is
in the index I suppose...

Best
Erick

On Fri, Aug 12, 2011 at 7:31 AM, Rohit <ro...@in-rev.com> wrote:
> Hi All,
>
>
>
> Please correct  me if I am wrong, but when I am trying to insert a document
> into Solr which was previously index, it overwrites the current key.
>
>
>
> Is there a way to change the behaviour,
>
>
>
> 1. I don't want Solr to override but on the other hand it should ignore the
> entry
>
> 2. Also, if I could change the behaviour on the fly, update based on a flag
> and ignore on another flag.
>
>
>
>
>
> Thanks and Regards,
>
> Rohit
>
>
>
>

Reply via email to