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

Vitaliy Zhovtyuk commented on SOLR-7123:
----------------------------------------

If got right the idea of nested document the result of such parse will be list 
of rows. 
Row values represented as map where nested documents node "org" is item in map, 
values of map will be list of maps containing name, city and zip.
So taking into account sample from SOLR-6304 it can look like: 
[{ "recipeId":"001", "recipeType":"donut", "id":"1001", "type":"Regular" , "o" 
: [{" name" : "Microsoft",
          "city": "Seattle",
          "zip": 98052},
        {"name": “Apple”,
         "city:”Cupertino”,
         "zip":"95014" }]}]
 So accordingly to parent split behaviour we transform nested documents with 
child split same way.

> /update/json/docs should have nested document support
> -----------------------------------------------------
>
>                 Key: SOLR-7123
>                 URL: https://issues.apache.org/jira/browse/SOLR-7123
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Noble Paul
>            Assignee: Noble Paul
>              Labels: EaseOfUse
>
> It is the next logical step after SOLR-6304
> For the example document given below where the /orgs belong to a nested 
> document, 
> {code}
> {
> "name": "Joe Smith",
> "phone": 876876687
> "orgs" :[ {" name" : "Microsoft",
>           "city": "Seattle",
>           "zip": 98052},
>         {"name": “Apple”,
>          "city:”Cupertino”,
>          "zip":"95014" }
>       ]
> } 
> {code}
> The extra mapping parameters would be
> {noformat}
> child.split=o:/org&
> o.f=name&
> o.f=city&
> o.f=zip
> {noformat}
> * o is the short name for that child. It is possible to map multiple children 
> with multiple shortnames
> * In this example all the o.* paths are relative. It is possible to five 
> absolute path names such as o.f=/org/name 



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

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

Reply via email to