Is the id your unique key in the collections? By right if your id is the
unique key, it will be overwritten automatically if the id is the same,
when you add the same parent documents with child documents.

Regards,
Edwin


On 16 May 2017 at 08:25, Jeffery Yuan <yuanyun...@gmail.com> wrote:

> Hi, Damien Kamerman
>
>   Thanks for your reply. The problem is when we add a parent documents
> which
> doesn't contain child info yet.
>   Later we will add same parent documents with child documents.
>
>   But this would cause 2 parent documents with same id in the solr index.
>
>   I workaround this issue by always deleting first, but I am wondering
> whether there is better approach.
>
> Thanks
> Jeffery Yuan
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.
> nabble.com/SolrJ-How-to-add-a-blocked-document-without-child-documents-
> tp4335006p4335195.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>

Reply via email to