You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Pooja Verlani <po...@gmail.com> on 2008/12/31 05:14:03 UTC

Problem with query response writer when upgrading from Solr1.2 to solr1.3

Hi,



I just upgraded my system from Solr 1.2 to Solr 1.3. I am using the same
plugin for the queryResponseWriter that I used in Solr1.2. Problem here is
that when I am using *wt* parameter as the plugin name with full package
then I don't get the response which I used to get in 1.2 and when I don't
give WT parameter, I get the perfect response from the default
XMLResponseWriter as expected. Also the above problem occurs only when we
use Shards and also, response is perfect when wt is given with hl=true. This
occurs only when I am using distributed query on multiple shards, on
individual shards it working fine i.e. when we use /select clause on
individual shards.
(http://localhost:8081/solr/select?q=%22indian%20railways%22&qt=modified&fl=*,score&wt=custom&hl=true).

<http://ec2-75-101-179-1.compute-1.amazonaws.com:8081/solr/select?q=%22indian%20railways%22&qt=blogs&fl=*,score&wt=blogs&hl=true%29.Please>


On individual shards, the custom responsewriters are working absolutely fine
but not with combining shards or using /distrib/....

<http://ec2-75-101-179-1.compute-1.amazonaws.com:8081/solr/select?q=%22indian%20railways%22&qt=blogs&fl=*,score&wt=blogs&hl=true%29.Please>
http://localhost:8081/solr/distrib?q=%22indian%20railways%22&qt=modified&fl=*,score&wt=custom&hl=true<http://ec2-75-101-179-1.compute-1.amazonaws.com:8081/solr/distrib?q=%22indian%20railways%22&qt=blogs&fl=*,score&wt=blogspdrm&hl=true>


<http://ec2-75-101-179-1.compute-1.amazonaws.com:8081/solr/distrib?q=%22indian%20railways%22&qt=blogs&fl=*,score&wt=blogspdrm&hl=true>

Please help.





This is part of solrconfig.xml



   <requestHandler name="/distrib" class="solr.SearchHandler">

     <lst name="defaults">

       <str name="shards">x,y,z</str>

     </lst>

   </requestHandler>



*    <queryResponseWriter name="standard" default="true"
class="FirstResponseWriter"/>*

*    <queryResponseWriter name="custom" class="SecondResponseWriter"/>*

* *

*
*

Regards,**

*Pooja
*

Re: Problem with query response writer when upgrading from Solr1.2 to solr1.3

Posted by Shalin Shekhar Mangar <sh...@gmail.com>.
The wt parameter accepts the 'name' you gave in solrconfig while specifying
your custom response writer. I don't think there has been any change in
handling of wt which would result in the behavior you are seeing.

Are there any exceptions in the Solr log? Is the jar with the custom
response writer present in all shards?

On Wed, Dec 31, 2008 at 9:44 AM, Pooja Verlani <po...@gmail.com>wrote:

> Hi,
>
>
>
> I just upgraded my system from Solr 1.2 to Solr 1.3. I am using the same
> plugin for the queryResponseWriter that I used in Solr1.2. Problem here is
> that when I am using *wt* parameter as the plugin name with full package
> then I don't get the response which I used to get in 1.2 and when I don't
> give WT parameter, I get the perfect response from the default
> XMLResponseWriter as expected. Also the above problem occurs only when we
> use Shards and also, response is perfect when wt is given with hl=true.
> This
> occurs only when I am using distributed query on multiple shards, on
> individual shards it working fine i.e. when we use /select clause on
> individual shards.
> (
> http://localhost:8081/solr/select?q=%22indian%20railways%22&qt=modified&fl=*,score&wt=custom&hl=true
> ).
>
> <
> http://ec2-75-101-179-1.compute-1.amazonaws.com:8081/solr/select?q=%22indian%20railways%22&qt=blogs&fl=*,score&wt=blogs&hl=true%29.Please
> >
>
>
> On individual shards, the custom responsewriters are working absolutely
> fine
> but not with combining shards or using /distrib/....
>
> <
> http://ec2-75-101-179-1.compute-1.amazonaws.com:8081/solr/select?q=%22indian%20railways%22&qt=blogs&fl=*,score&wt=blogs&hl=true%29.Please
> >
>
> http://localhost:8081/solr/distrib?q=%22indian%20railways%22&qt=modified&fl=*,score&wt=custom&hl=true
> <
> http://ec2-75-101-179-1.compute-1.amazonaws.com:8081/solr/distrib?q=%22indian%20railways%22&qt=blogs&fl=*,score&wt=blogspdrm&hl=true
> >
>
>
> <
> http://ec2-75-101-179-1.compute-1.amazonaws.com:8081/solr/distrib?q=%22indian%20railways%22&qt=blogs&fl=*,score&wt=blogspdrm&hl=true
> >
>
> Please help.
>
>
>
>
>
> This is part of solrconfig.xml
>
>
>
>   <requestHandler name="/distrib" class="solr.SearchHandler">
>
>     <lst name="defaults">
>
>       <str name="shards">x,y,z</str>
>
>     </lst>
>
>   </requestHandler>
>
>
>
> *    <queryResponseWriter name="standard" default="true"
> class="FirstResponseWriter"/>*
>
> *    <queryResponseWriter name="custom" class="SecondResponseWriter"/>*
>
> * *
>
> *
> *
>
> Regards,**
>
> *Pooja
> *
>



-- 
Regards,
Shalin Shekhar Mangar.