dsmiley commented on issue #549: WIP:SOLR-13129
URL: https://github.com/apache/lucene-solr/pull/549#issuecomment-472710976
 
 
   I'm doing a bunch of editing and will run ant precommit soon.  But I just 
want to share a rewrite I did of the end of the new nested indexing page:
   ```
   === Important: Maintaining Integrity with Updates and Deletes
   
   Nested documents (children and all) can simply be replaced by adding a new 
document with more or fewer documents as an application desires.  This aspect 
isn't different than updating any normal document except that Solr takes care 
to ensure that all related child documents of the existing version get deleted.
   
   Do *not* add a root document that has the same ID of a child document.  
_This will violate integrity assumptions that Solr expects._
   
   To delete a nested document, you can delete it by the ID of the root 
document.
   If you try to use an ID of a child document, nothing will happen since only 
root document IDs are considered.
   If you use Solr's delete-by-query APIs, you *have to be careful* to ensure 
that no children remain of any documents that are being deleted.  _Doing 
otherwise will violate integrity assumptions that Solr expects._
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to