SOLR-18445 Let /update handler support JSONL / NDJSON #4910
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.44) × (1 − Review Confidence (0.41)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.44 · 232 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.326
Real PR Conversation Timeline
1 comments
"Review active on #4910"
general
weight: 0.35
sigram
Adds Newline Delimited JSON (ND-JSON / JSON Lines) as an update format.
What it does
/updateselects the format fromContent-Type: application/x-ndjsonon both v1 and v2.application/jsonl,application/jsonlinesandapplication/x-jsonlinesare accepted as aliases, and v2/updatealso honoursupdate.contentType./update/ndjsonpath on v1 and v2, which selects the format regardless of content type.NDJsonLoaderextendsJsonLoaderand delegates document mapping to the/update/json/docsmachinery.NDJsonParserto stream-parse the format without buffering lines, and to reject malformed ND-JSON with the line number: strict JSON only, exactly one object per line, no enclosing array, no comments. Blank lines are skipped.415.bin/solr postnow sends.jsonland.ndjsonfiles to/update(they previously went to/update/extractand were indexed as a single Tika blob).a.b.cfield names, but we also support the samesplitandfparams as theJsonLoaderto specify whether we want child documents.splitmust start at/, since each line is already one document./update/json/docs(changelog entry of typedeprecatedand an upgrade note under Solr 10.2); the Ref Guide example that showed it is replaced by the new ND-JSON section.What it does not do
add,delete,commitetc. Use thecommit/commitWithinrequest parameters.srcField./updatewithapplication/json, XML, CSV, javabin and CBOR behave as before.https://issues.apache.org/jira/browse/SOLR-18445