Block join is a very specialized feature of Solr - it requires that creation and update of the parent and all children be done as a single update operation for all of the documents. So... you cannot update a child document by itself, but need to update the entire block.

Unfortunately, this limitation does not appear to be documented in the Solr ref guide.

-- Jack Krupansky

-----Original Message----- From: Vinay B,
Sent: Tuesday, June 24, 2014 10:40 PM
To: solr-user
Subject: Does updating a child document destroy the parent - child relationship

When I edit a child document, a block join query for the parent no longer
returns any hits. I thought I read that this was the way things worked but
needed to know for sure.

If so, is there any other way to achieve this functionality (I can deal
with creating the child doc with the parent, but would like to edit it
separately).

My rough prototype code is at

https://github.com/balamuru/SolrChildDocs

and the code in question is commented out in
https://github.com/balamuru/SolrChildDocs/blob/master/src/main/java/com/vgb/solr/SolrApp.java


Thanks

Reply via email to