You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Noble Paul (JIRA)" <ji...@apache.org> on 2015/12/12 02:24:46 UTC
[jira] [Updated] (SOLR-7123) /update/json/docs should have nested
document support
[ https://issues.apache.org/jira/browse/SOLR-7123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noble Paul updated SOLR-7123:
-----------------------------
Description:
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 specify absolute path names such as o.f=/org/name
was:
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 specify absolute path names such as o.f=/org/name
> /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
> Attachments: SOLR-7123.patch
>
>
> 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 specify 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org