[
https://issues.apache.org/jira/browse/SOLR-18445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jan Høydahl updated SOLR-18445:
-------------------------------
Description:
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.
was:
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 commands format, e.g. {{{{}"add":{"doc":{…{}}}...}}}
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.
> 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
>
> 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]