Hey Erick, Managed to do this in the end by reconstructing a new SolrQueryRequest with a SolrRequestParsers (method buildRequestFrom()) and then calling core.execute(); Took some fiddling but seems to be working now! :)
Thanks for the help! Nick On Sun, 22 Jul 2012 10:58:16 -0400, Erick Erickson <erickerick...@gmail.com> wrote: > Haven't done this in code myself, but take a look at > MutlCoreJettyExampleTest and the associated base > class, that might give you some pointers.... > > Best > Erick > > On Thu, Jul 19, 2012 at 9:35 PM, Nicholas Ball > <nicholas.b...@nodelay.com> wrote: >> >> What is the best way to redirect a SolrQueryRequest to another core from >> within a handler (custom SearchHandler)? >> >> I've tried to find the SolrCore of the core I want to redirect to and >> called the execute() method with the same params but it looks like the >> SolrQueryRequest object already has the old core name embedded into it! I >> want to do this without making a new request and going through the >> servlet >> etc... >> >> * Note that I had to have an empty core with a special name just to do >> this redirection process in the first place, if there is a better way to >> proceed with this please let me know too :) >> >> Many thanks for any help you can give, >> Nicholas (incunix)