You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mikhail Khludnev (JIRA)" <ji...@apache.org> on 2015/12/04 08:35:11 UTC

[jira] [Comment Edited] (SOLR-5211) updating parent as childless makes old children orphans

    [ https://issues.apache.org/jira/browse/SOLR-5211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15038352#comment-15038352 ] 

Mikhail Khludnev edited comment on SOLR-5211 at 12/4/15 7:34 AM:
-----------------------------------------------------------------

I want to address this. Thus, we have to assign identifier spans across whole block. However it makes <uniqueKey> semantics odd. Even if you send a single document, it _moves_ {{uniqueKey}} field value into {{\_root_}} field (as-is). Otherwise, we can propagate {{uniqueKey}} to whole block, but it would seem contradictionary. 
Which way would you like?


was (Author: mkhludnev):
I want to address this. Thus, we have to assign identifier spans across whole block. However it makes <uniqueKey> semantics odd. Even if you send a single document, it _moves_ {{uniqueKey}} field value into {{_root_}} field (as-is). Otherwise, we can propagate {{uniqueKey}} to whole block, but it would seem contradictionary. 
Which way would you like?

> updating parent as childless makes old children orphans
> -------------------------------------------------------
>
>                 Key: SOLR-5211
>                 URL: https://issues.apache.org/jira/browse/SOLR-5211
>             Project: Solr
>          Issue Type: Sub-task
>          Components: update
>    Affects Versions: 4.5, Trunk
>            Reporter: Mikhail Khludnev
>            Assignee: Mikhail Khludnev
>             Fix For: Trunk, 5.5
>
>
> if I have parent with children in the index, I can send update omitting children. as a result old children become orphaned. 
> I suppose separate \_root_ fields makes much trouble. I propose to extend notion of uniqueKey, and let it spans across blocks that makes updates unambiguous.  
> WDYT? Do you like to see a test proves this issue?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org