Description
I noticed today that we have
client.queryDefaults().set("shards", "foo", "debugQuery", "bar");
style usage in some tests and whilst this was likely intended to result in
{ "shards" : "foo", "debugQuery" : "bar" }
query defaults it actually results in
{ "shards" : [ "foo", "debugQuery" , "bar" ] }
query defaults based on the ModifiableSolrParams.set implementation: https://github.com/apache/lucene-solr/blob/releases/lucene-solr/8.6.3/solr/solrj/src/java/org/apache/solr/common/params/ModifiableSolrParams.java#L86-L96
A possible alternative is
client.queryDefaults().set("shards", "foo").set("debugQuery", "bar");
style usage.