lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "mosh (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SOLR-12361) Change _childDocuments to Map
Date Wed, 16 May 2018 07:16:00 GMT

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

mosh edited comment on SOLR-12361 at 5/16/18 7:15 AM:
------------------------------------------------------

quoting [~dsmiley]
{quote}One other variation on an approach is to keep the _childDocuments member of SolrInputDocument
but have it be a Map<String,List<SolrInputDocument>> to capture the relationship
name.
{quote}
This would make all children as multiValued fields.
 How do you propose we store whether the fields was an array or a single value document when
it was entered?
 Perhaps we should have the _childDocuments be a Map<String,Object>, having the values
either be a SolrInputDocument or a Collection<SolrInputDocument>.
Perhaps have the values be SolrInputDocument, or some variation of it be a better fit, since
it has the ability to abstract the value as a collection even if it is originally an object?


was (Author: moshebla):
quoting [~dsmiley]
{quote}One other variation on an approach is to keep the _childDocuments member of SolrInputDocument
but have it be a Map<String,List<SolrInputDocument>> to capture the relationship
name.
{quote}
This would make all children as multiValued fields.
 How do you propose we store whether the fields was an array or a single value document when
it was entered?
 Perhaps we should have the _childDocuments be a Map<String,Object>, having the values
either be a SolrInputDocument or a Collection<SolrInputDocument>.

> Change _childDocuments to Map
> -----------------------------
>
>                 Key: SOLR-12361
>                 URL: https://issues.apache.org/jira/browse/SOLR-12361
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: mosh
>            Priority: Major
>
> During the discussion on SOLR-12298, there was a proposal to change _childDocuments in
SolrDocumentBase to a Map, to incorporate the relationship between the parent and its child
documents.



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

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


Mime
View raw message