Hi,

I'm trying to index documents using SolrJ. I'm getting duplicate documents
while adding child document to parent in the below scenario. I've UniqueKey
configuration in schema.xml.

1) Adding child to parent. If the parent already has a child then I can just
retrieve that parent and add child document and commit it again. Now it's
working fine.

2) Adding child to parent. If the parent does not have a child document
already, then it's creating duplicate of parent. So, I need to delete the
parent, create the parent with child once again and commit the parent with
child.

Any thoughts on why this is happening?



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Indexing-with-SolrJ-tp4175175.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to