On 8/9/2013 4:47 AM, Vineet Mishra wrote: > Currently I am working with RequestHandler in Solr, where the user defined > query is processed at the class specified by the requesthandler in > Solrconfig.xml. > > But my requirement is that I want to make it a Post call rather than a Get > query call. > > Is it possible or are there some way we can accomplish querying Solr > RequestHandler with Post Method. > > This is an urgent call. Please revert back soon possible.
I can tell you that the built-in query and update handlers that get used in the Solr example, which you may be using with GET requests, will work fine with POST. The request handling is probable generic enough so everything (even custom handlers) works with POST, but I do not know for sure that this is the case. I believe that if you want to send a POST request that you construct yourself without a Solr API, that it must be formatted in xml or json, and the Content-Type HTTP header must be correctly set. SolrJ (the Java client API) is capable of using a more efficient request writer format that we call javabin. As of right now SolrJ uses XML by default for the request and asks for javabin in the response, but there are plans underway to use javabin by default in both directions. There are some minor technical hurdles to overcome for this change. Thanks, Shawn