lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zheng Lin Edwin Yeo <edwinye...@gmail.com>
Subject Re: SolrJ - How to add a blocked document without child documents
Date Wed, 17 May 2017 03:40:55 GMT
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.cn@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message