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 Jeff Wartes <jw...@whitepages.com> on 2014/02/11 18:21:45 UTC
handleSelect=true with SolrCloud
I’m working on a port of a Solr service to SolrCloud. (Targeting v4.6.0 at present.) The old query style relied on using /solr/select?qt=foo to select the proper requestHandler. I know handleSelect=true is deprecated now, but it’d be pretty handy for testing to be able to be backwards compatible, at least until some time after the initial release.
So in my SolrCloud configuration, I set <requestDispatcher handleSelect="true”> and deleted the /select requestHandler as suggested here: http://wiki.apache.org/solr/SolrRequestHandler#Old_handleSelect.3Dtrue_Resolution_.28qt_param.29
However, my /solr/collection1/select?qt=foo query throws an “unknown handler: null” error with this configuration. Has anyone successfully tried handleSelect=true with the collections api?
Thanks.
RE: handleSelect=true with SolrCloud
Posted by "EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions)" <ex...@us.bosch.com>.
Hi Jeff, it is not with elevated, I am talking in the link of Relevancy / Boost/ Score.
Select productid from products where SKU = "101"
Select Productid from products where ManufactureSKU = "101"
Select Productid from product where SKU Like "101%"
Select Productid from Product where ManufactureSKU like "101%"
Select Productid from product where Name Like "101%"
Select Productid from Product where Description like '%101%"
Is there any way in Solr can search the exact match,starts with and anywhere.. in single solr query.
-----Original Message-----
From: Joel Bernstein [mailto:joelsolr@gmail.com]
Sent: Tuesday, February 11, 2014 3:11 PM
To: solr-user@lucene.apache.org
Subject: Re: handleSelect=true with SolrCloud
Jeff,
I believe the shards.qt parameter is what you're looking for. For example when using the "/elevate" handler with SolrCloud I use the following url to tell Solr to use the "/elevate" handler on the shards:
http://localhost:8983/solr/collection1/elevate?q=ipod&wt=json&indent=true&shards.qt=/elevate
Joel Bernstein
Search Engineer at Heliosearch
On Tue, Feb 11, 2014 at 1:01 PM, Jeff Wartes <jw...@whitepages.com> wrote:
>
> Got it in one. Thanks!
>
>
> On 2/11/14, 9:50 AM, "Shawn Heisey" <so...@elyograg.org> wrote:
>
> >On 2/11/2014 10:21 AM, Jeff Wartes wrote:
> >> I¹m working on a port of a Solr service to SolrCloud. (Targeting
> >>v4.6.0 at present.) The old query style relied on using
> >>/solr/select?qt=foo to select the proper requestHandler. I know
> >>handleSelect=true is deprecated now, but it¹d be pretty handy for
> >>testing to be able to be backwards compatible, at least until some time after the initial release.
> >>
> >> So in my SolrCloud configuration, I set <requestDispatcher
> >>handleSelect="true²> and deleted the /select requestHandler as
> >>suggested
> >>here:
> >>
> http://wiki.apache.org/solr/SolrRequestHandler#Old_handleSelect.3Dtrue
> _Re
> >>solution_.28qt_param.29
> >>
> >> However, my /solr/collection1/select?qt=foo query throws an
> >>³unknown
> >>handler: null² error with this configuration. Has anyone
> >>successfully tried handleSelect=true with the collections api?
> >
> >I'm pretty sure that if you won't have a handler named /select, then
> >you need to have default="true" as an attribute on one of your other
> >handler definitions.
> >
> >See line 715 of the example solrconfig.xml for Solr 3.5:
> >
> >
> http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_3_5/solr/
> exam
> >ple/solr/conf/solrconfig.xml?view=annotate
> >
> >Thanks,
> >Shawn
> >
>
>
Re: handleSelect=true with SolrCloud
Posted by Joel Bernstein <jo...@gmail.com>.
Jeff,
I believe the shards.qt parameter is what you're looking for. For example
when using the "/elevate" handler with SolrCloud I use the following url to
tell Solr to use the "/elevate" handler on the shards:
http://localhost:8983/solr/collection1/elevate?q=ipod&wt=json&indent=true&shards.qt=/elevate
Joel Bernstein
Search Engineer at Heliosearch
On Tue, Feb 11, 2014 at 1:01 PM, Jeff Wartes <jw...@whitepages.com> wrote:
>
> Got it in one. Thanks!
>
>
> On 2/11/14, 9:50 AM, "Shawn Heisey" <so...@elyograg.org> wrote:
>
> >On 2/11/2014 10:21 AM, Jeff Wartes wrote:
> >> I¹m working on a port of a Solr service to SolrCloud. (Targeting v4.6.0
> >>at present.) The old query style relied on using /solr/select?qt=foo to
> >>select the proper requestHandler. I know handleSelect=true is deprecated
> >>now, but it¹d be pretty handy for testing to be able to be backwards
> >>compatible, at least until some time after the initial release.
> >>
> >> So in my SolrCloud configuration, I set <requestDispatcher
> >>handleSelect="true²> and deleted the /select requestHandler as suggested
> >>here:
> >>
> http://wiki.apache.org/solr/SolrRequestHandler#Old_handleSelect.3Dtrue_Re
> >>solution_.28qt_param.29
> >>
> >> However, my /solr/collection1/select?qt=foo query throws an ³unknown
> >>handler: null² error with this configuration. Has anyone successfully
> >>tried handleSelect=true with the collections api?
> >
> >I'm pretty sure that if you won't have a handler named /select, then you
> >need to have default="true" as an attribute on one of your other handler
> >definitions.
> >
> >See line 715 of the example solrconfig.xml for Solr 3.5:
> >
> >
> http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_3_5/solr/exam
> >ple/solr/conf/solrconfig.xml?view=annotate
> >
> >Thanks,
> >Shawn
> >
>
>
Re: handleSelect=true with SolrCloud
Posted by Jeff Wartes <jw...@whitepages.com>.
Got it in one. Thanks!
On 2/11/14, 9:50 AM, "Shawn Heisey" <so...@elyograg.org> wrote:
>On 2/11/2014 10:21 AM, Jeff Wartes wrote:
>> I¹m working on a port of a Solr service to SolrCloud. (Targeting v4.6.0
>>at present.) The old query style relied on using /solr/select?qt=foo to
>>select the proper requestHandler. I know handleSelect=true is deprecated
>>now, but it¹d be pretty handy for testing to be able to be backwards
>>compatible, at least until some time after the initial release.
>>
>> So in my SolrCloud configuration, I set <requestDispatcher
>>handleSelect="true²> and deleted the /select requestHandler as suggested
>>here:
>>http://wiki.apache.org/solr/SolrRequestHandler#Old_handleSelect.3Dtrue_Re
>>solution_.28qt_param.29
>>
>> However, my /solr/collection1/select?qt=foo query throws an ³unknown
>>handler: null² error with this configuration. Has anyone successfully
>>tried handleSelect=true with the collections api?
>
>I'm pretty sure that if you won't have a handler named /select, then you
>need to have default="true" as an attribute on one of your other handler
>definitions.
>
>See line 715 of the example solrconfig.xml for Solr 3.5:
>
>http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_3_5/solr/exam
>ple/solr/conf/solrconfig.xml?view=annotate
>
>Thanks,
>Shawn
>
Re: handleSelect=true with SolrCloud
Posted by Shawn Heisey <so...@elyograg.org>.
On 2/11/2014 10:21 AM, Jeff Wartes wrote:
> I’m working on a port of a Solr service to SolrCloud. (Targeting v4.6.0 at present.) The old query style relied on using /solr/select?qt=foo to select the proper requestHandler. I know handleSelect=true is deprecated now, but it’d be pretty handy for testing to be able to be backwards compatible, at least until some time after the initial release.
>
> So in my SolrCloud configuration, I set <requestDispatcher handleSelect="true”> and deleted the /select requestHandler as suggested here: http://wiki.apache.org/solr/SolrRequestHandler#Old_handleSelect.3Dtrue_Resolution_.28qt_param.29
>
> However, my /solr/collection1/select?qt=foo query throws an “unknown handler: null” error with this configuration. Has anyone successfully tried handleSelect=true with the collections api?
I'm pretty sure that if you won't have a handler named /select, then you
need to have default="true" as an attribute on one of your other handler
definitions.
See line 715 of the example solrconfig.xml for Solr 3.5:
http://svn.apache.org/viewvc/lucene/dev/branches/lucene_solr_3_5/solr/example/solr/conf/solrconfig.xml?view=annotate
Thanks,
Shawn