dsmiley commented on code in PR #4149:
URL: https://github.com/apache/solr/pull/4149#discussion_r2956972195
##########
solr/solrj/src/java/org/apache/solr/client/solrj/response/LukeResponse.java:
##########
@@ -257,19 +285,42 @@ public String getIndexDirectory() {
return (String) indexInfo.get("directory");
}
- public Integer getNumDocs() {
+ private Long getIndexLong(String key) {
if (indexInfo == null) return null;
- return (Integer) indexInfo.get("numDocs");
+ Number n = (Number) indexInfo.get(key);
+ return n != null ? n.longValue() : null;
+ }
+
+ public Integer getNumDocs() {
Review Comment:
That's minor enough for a 10.1 change. What I'd like to retain is a SolrJ
10.0 JAR using default javabin to talk to Solr 10.1. XML & JSON consistency as
well but that is not expected to change with Integer vs Long... it's javabin
that's the risk (if I recall).
--
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]