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

mosh edited comment on SOLR-12362 at 7/1/18 9:30 AM:
-----------------------------------------------------

{quote}look at the SolrInputField parameter to look at the field we're adding 
this to (i.e. what key is this sub-json structure associated with?). Is that a 
field in the schema? If it is, then we have an "extended field value (partial 
update most likely). If it is not, then we have a child document.
{quote}
This works for partial updates fine, but seems to fail on index time boosts, as 
the fields can be indexed using a boost without having being indexed beforehand.
 I have pushed a 
[commit|https://github.com/moshebla/lucene-solr/commit/1958ee7407e8e3d6e43dfa71a9e6a53c0e0dc4dc]
 showcasing the problem.
 The tests JsonLoaderTest.testParsing and JsonLoaderTest.testFieldValueOrdering 
both seem to fail because of the problem described above.


was (Author: moshebla):
{quote}look at the SolrInputField parameter to look at the field we're adding 
this to (i.e. what key is this sub-json structure associated with?). Is that a 
field in the schema? If it is, then we have an "extended field value (partial 
update most likely). If it is not, then we have a child document.
{quote}
This works for partial updates fine, but it seems to fail on index time boosts, 
as the field can be indexed using a boost without having previously been 
indexed.
 I have pushed a 
[commit|https://github.com/moshebla/lucene-solr/commit/1958ee7407e8e3d6e43dfa71a9e6a53c0e0dc4dc]
 showcasing the problem.
The tests JsonLoaderTest.testParsing and JsonLoaderTest.testFieldValueOrdering 
both seem to fail because of the problem described above.

> JSON loader should save the relationship of children
> ----------------------------------------------------
>
>                 Key: SOLR-12362
>                 URL: https://issues.apache.org/jira/browse/SOLR-12362
>             Project: Solr
>          Issue Type: Sub-task
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: mosh
>            Assignee: David Smiley
>            Priority: Major
>             Fix For: 7.5
>
>          Time Spent: 6.5h
>  Remaining Estimate: 0h
>
> Once _childDocuments in SolrInputDocument is changed to a Map, JsonLoader 
> should add the child document to the map while saving its key name, to 
> maintain the child's relationship to its parent.



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

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

Reply via email to