Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
Description
When using the /update/json/docs endpoint with 'split' param and f=$FQN/**, the FQN until the 'split' value is lost. e.g:
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" } ] }
Split param: /|/exams
Indexed Doc Fields (partial)
<arr name="notes.attendence"> <str>95</str> </arr> <arr name="notes.midterm"> <str>90</str> </arr> . .
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.:
<doc> <arr name="exams.notes.attendence"> <long>95</long> </arr> <arr name="exams.notes.midterm"> <long>90</long> </arr>
A possible solution could be to add a boolean param that allows for such a mapping easily.