First, could you tell us more about your use case?   Why do you want to change 
the response code?   HTTP 307 = Temporary redirect - where are you going to 
redirect?  Sounds like something best handled outside of Solr.  

If you went down the route of creating your own custom response writer, then 
you'd be locked into a single format (XML, or JSON, or which ever that you 
subclassed)


On Dec 7, 2011, at 06:48 , Finotti Simone wrote:

> Hello,
> I need to change the HTTP result code of the query result if some conditions 
> are met.
> 
> Analyzing the flow of execution of Solr query process, it seems to me that 
> the "place" that fits better is the QueryResponseWriter. Anyway I didn't 
> found a way to change the HTTP request layout (I need to set 307 instead of 
> 200), so I wonder if it's possible at all with the Solr (v 3.4) plugin 
> mechanism actually provided.
> 
> Any insight would be greatly appreciated J
> 
> Thanks
> S

Reply via email to