This is an automated email from the ASF dual-hosted git repository.
dsmiley pushed a commit to branch branch_9_9
in repository https://gitbox.apache.org/repos/asf/solr.git
The following commit(s) were added to refs/heads/branch_9_9 by this push:
new ab76cccb26c SOLR-17715: Deprecate SolrQuery.setRequestHandler (#3600)
ab76cccb26c is described below
commit ab76cccb26c73a186d4a30ddfb176d07e5a6b561
Author: David Smiley <[email protected]>
AuthorDate: Tue Sep 2 15:26:20 2025 -0400
SOLR-17715: Deprecate SolrQuery.setRequestHandler (#3600)
and getRequestHandler.
Use setPath instead.
(cherry picked from commit bdfb1219a81e63e4146a0994972d6670ebbd20dd)
---
solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java
b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java
index d82f46a399a..8bc477b2fc1 100644
--- a/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java
+++ b/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java
@@ -1139,12 +1139,15 @@ public class SolrQuery extends ModifiableSolrParams {
*
* @param qt The Request Handler name corresponding to one in solrconfig.xml
on the server.
* @return this
+ * @deprecated Use {@link SolrRequest#setPath(String)}
*/
+ @Deprecated
public SolrQuery setRequestHandler(String qt) {
this.set(CommonParams.QT, qt);
return this;
}
+ @Deprecated
public String getRequestHandler() {
return this.get(CommonParams.QT);
}