Copilot commented on code in PR #5433:
URL: https://github.com/apache/solr/pull/5433#discussion_r4800359864
##########
solr/core/src/java/org/apache/solr/handler/loader/JsonLoader.java:
##########
@@ -68,6 +69,16 @@
* @since solr 4.0
*/
public class JsonLoader extends ContentStreamLoader {
+
+ /** Content-Type for a body of Solr JSON update commands, e.g. {@code
{"add":..,"commit":{}}}. */
+ public static final String COMMANDS_CONTENT_TYPE =
"application/vnd.solr.commands+json";
+
+ /**
+ * @deprecated Use {@link UpdateRequestHandler#DOC_PATH} for documents and
{@link
+ * #COMMANDS_CONTENT_TYPE} for commands. Will be removed in Solr 11.
+ */
+ @Deprecated public static final String JSON_COMMAND_PARAM = "json.command";
Review Comment:
The Solr 10.2 upgrade note identifies this deprecation as starting in 10.2,
but the public constant's `@Deprecated` annotation omits `since`, leaving its
API deprecation metadata unversioned. Please set the annotation's `since` to
`10.2` to keep it aligned with the release-scoped note.
--
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]