[
https://issues.apache.org/jira/browse/SOLR-18445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18115058#comment-18115058
]
Jan Høydahl commented on SOLR-18445:
------------------------------------
Yes, and the handler already supports three variants, see
[https://github.com/apache/solr/pull/4910/changes#diff-7a8b53fe573fdc5d092a86e5aec9c5cb78c401a6c7aa95e1b7d64798222cfcd0R55]
Seems like IANA do not want to admit that ND-JSON has "won" the popular vote
over their already standardized {{application/json-seq}} type, and thus do not
want "competition". But we could hope that the nd-json community would hold a
vote and agree on one rather than three custom content types.
> Let /update handler support JSONL / NDJSON
> ------------------------------------------
>
> Key: SOLR-18445
> URL: https://issues.apache.org/jira/browse/SOLR-18445
> Project: Solr
> Issue Type: Improvement
> Components: update
> Reporter: Jan Høydahl
> Assignee: Jan Høydahl
> Priority: Major
> Labels: pull-request-available
> Time Spent: 20m
> Remaining Estimate: 0h
>
> Today we can POST JSON content to solr in a few formats:
> * Plain JSON, single object
> * Plain JSON, array of objects [\{"id":"1"},\{"id":"2"}]
> * Custom json commands format
> This issue is to support [Newline delimited JSON|https://ndjson.com/]
> (ND-JSON or JSONL).
> The format may get its own {{/update/ndjson}} endpoint, but more importantly,
> it will be auto selected on the {{/update}} endpoint if {{Content-Type:
> application/x-ndjson}} is specified.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]