janhoy commented on code in PR #4910: URL: https://github.com/apache/solr/pull/4910#discussion_r4029644910
########## solr/solr-ref-guide/modules/upgrade-notes/pages/major-changes-in-solr-10.adoc: ########## @@ -46,6 +46,10 @@ If you use xref:configuration-guide:index-segments-merging.adoc#customizing-merg This requires a fresh Solr 10.1 index. To retain compatibility with existing sorted indexes, deferring a reindex, keep `luceneMatchVersion` at 10.3.1 or earlier in solrconfig.xml. +=== JSON Lines on /update/json/docs is deprecated + +The `/update/json/docs` path, and the v2 `/update` and `/update/json` paths that map to it, currently accept a payload of several whitespace spearated JSON objects. In a future version, only valid JSON will be allowed for this endpoint (either a single JSON object or an array of objects). Use the `/update/json/ndjson` endpoint for JSON Lines (newline-delimited JSON) payloads. Review Comment: Our JSON parsing is very uncommon and strange, accepting whitespace in stead of comma between objects etc. So my intent of this doc-only deprecation is that we further down the road can switch to strict JSON parsing for JSON update requests by tightening Noggit. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
