Apache Lucene open-source search software
SOLR-7275: Setting requestType for context object in case of a /get request
Anshum Gupta47911f0b84cc
diff --git a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.javaindex 00e6b102f34..3434f2902ac 100644--- a/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java+++ b/solr/core/src/java/org/apache/solr/servlet/HttpSolrCall.java@@ -901,7 +901,7 @@ public class HttpSolrCall {// Populate the request type if the request is select or updateif(requestType == RequestType.UNKNOWN) {- if(resource.startsWith("/select"))+ if(resource.startsWith("/select") || resource.startsWith("/get"))requestType = RequestType.READ;if(resource.startsWith("/update"))requestType = RequestType.WRITE;