lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "EXTERNAL Taminidi Ravi (ETI, Automotive-Service-Solutions)" <external.Ravi.Tamin...@us.bosch.com>
Subject RE: handleSelect=true with SolrCloud
Date Tue, 11 Feb 2014 20:34:35 GMT
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 <jwartes@whitepages.com> wrote:

>
> Got it in one. Thanks!
>
>
> On 2/11/14, 9:50 AM, "Shawn Heisey" <solr@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
> >
>
>

Mime
View raw message