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/03/09 21:16:38 UTC
[jira] [Created] (SOLR-7209) /update/json/docs carry forward fields
from previous records
Noble Paul created SOLR-7209:
--------------------------------
Summary: /update/json/docs carry forward fields from previous records
Key: SOLR-7209
URL: https://issues.apache.org/jira/browse/SOLR-7209
Project: Solr
Issue Type: Bug
Reporter: Noble Paul
Assignee: Noble Paul
example
{noformat}
curl -H 'Content-type:application/json' 'http://localhost:8983/solr/foo/update/json/docs?split=/exams&echo=true&f=$FQN:/**&indent=true&omitHeader=true' -d '
{
'first': 'John',
'exams': [
{'subject': 'Maths', 'test' : 'term1', 'marks':90},
{'subject': 'Biology', 'test' : 'term1', 'marks':86}
]
}
{
'first': 'Bob',
'exams': [
{'subject': 'Maths', 'test': 'term1', 'marks': 95
}
,
{
'subject': 'Biology', 'test' : 'term1', 'marks': 92}
]
}'
{noformat}
produces the following set of docs
{noformat}
{
"docs":[{
"first":"John",
"exams.subject":"Maths",
"exams.test":"term1",
"exams.marks":90},
{
"first":"John",
"exams.subject":"Biology",
"exams.test":"term1",
"exams.marks":86},
{
"first":["John",
"Bob"],
"exams.subject":"Maths",
"exams.test":"term1",
"exams.marks":95},
{
"first":["John",
"Bob"],
"exams.subject":"Biology",
"exams.test":"term1",
"exams.marks":92}]}
{noformat}
--
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