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

David Smiley commented on SOLR-12951:
-------------------------------------

I guess we shouldn't make the ID pattern mandatory.  But _if_ the nested 
document ID conforms to the aforementioned pattern (root ID, exclamation, 
nested ID), then I think we could at least enforce uniqueness within the nested 
document structure.  I'm not sure if it's additionally worth the expense in 
checking IDs globally (i.e. in the index).
Regardless, this ought to be documented, and ideally with a new documentation 
page dedicated to nested documents. 

> Should Child Doc Ids be unique?
> -------------------------------
>
>                 Key: SOLR-12951
>                 URL: https://issues.apache.org/jira/browse/SOLR-12951
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: mosh
>            Priority: Major
>
> Currently there is no constraint regarding child document ids, which can 
> repeat themselves in different documents.
> [~dsmiley] has previously brought the topic of child doc Ids
> {quote}make it mandatory that all child doc IDs start with a root doc ID then 
> an exclamation then whatever.{quote}
> This has made me think, should we enforce child document Ids to be unique?
> Perhaps chaining the root document id(which is unique) could aid?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to