Anshum Gupta created SOLR-9420:
----------------------------------
Summary: Add support for complete FQN when using /update/json/docs
endpoint with split param
Key: SOLR-9420
URL: https://issues.apache.org/jira/browse/SOLR-9420
Project: Solr
Issue Type: Improvement
Security Level: Public (Default Security Level. Issues are Public)
Reporter: Anshum Gupta
When using the /update/json/docs endpoint with 'split' param and f=$FQN/**, the
FQN until the 'split' value is lost. e.g:
{code:title=Input JSON}
{
"id": 1,
"first": "John",
"last": "Doe",
"grade": 8,
"doc_type": "parent",
"exams": [
{
"id": 1.1,
"subject": "Maths",
"test" : "term1",
"marks" : 90,
"notes": {
"attendence": "95",
"midterm": "90",
},
"doc_type": "child"
},
{
"id": 1.2,
"subject": "Biology",
"test" : "term1",
"marks" : 86,
"notes": {
"attendence": "90",
"midterm": "95"
},
"doc_type":"child"
}
]
}
{code}
Split param: */|/exams*
{code:title=Indexed Doc Fields (partial)}
<arr name="notes.attendence">
<str>95</str>
</arr>
<arr name="notes.midterm">
<str>90</str>
</arr>
.
.
{code}
We should have a way to easily include the split param to be a part of the FQN
generated by the JSON endpoint e.g.:
{code}
<doc>
<arr name="exams.notes.attendence">
<long>95</long>
</arr>
<arr name="exams.notes.midterm">
<long>90</long>
</arr>
{code}
A possible solution could be to add a boolean param that allows for such a
mapping easily.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]