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 dabboo <ag...@sapient.com> on 2009/03/05 07:30:16 UTC
Column Specific Query with q parameter
Hi,
I am implementing column specific query with q query parameter. for e.g.
?q=prdMainTitle_product_s:math & qt=dismaxrequest
The above query doesnt work while if I use the same query with q.alt
parameter, it works.
?q=&q.alt= prdMainTitle_product_s:math & qt=dismaxrequest
Please suggest, how to achieve this with q query.
Thanks,
Amit Garg
--
View this message in context: http://www.nabble.com/Column-Specific-Query-with-q-parameter-tp22345960p22345960.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Column Specific Query with q parameter
Posted by Matt Mitchell <go...@gmail.com>.
The syntax for the q param when using dismax is different from standard.
Check this out:
http://wiki.apache.org/solr/DisMaxRequestHandler#head-df8184dddf870336839490ba276ea6ac566d0bdf
q.alt under dismax is parsed using the standard query parser though:
http://wiki.apache.org/solr/DisMaxRequestHandler#head-9d23a23915b7932490069d3262ef7f3625e398ff
Using dismax with that query... you could do it using the fq param:
?fq=prdMainTitle_product_s:math&qt=dismaxrequest&q.alt=*:*
But make sure you understand how the fq param works; how solr uses its
caching...
http://wiki.apache.org/solr/CommonQueryParameters#head-6522ef80f22d0e50d2f12ec487758577506d6002
Hope this helps,
Matt
On Thu, Mar 5, 2009 at 1:30 AM, dabboo <ag...@sapient.com> wrote:
>
> Hi,
>
> I am implementing column specific query with q query parameter. for e.g.
>
> ?q=prdMainTitle_product_s:math & qt=dismaxrequest
>
> The above query doesnt work while if I use the same query with q.alt
> parameter, it works.
>
> ?q=&q.alt= prdMainTitle_product_s:math & qt=dismaxrequest
>
> Please suggest, how to achieve this with q query.
>
> Thanks,
> Amit Garg
> --
> View this message in context:
> http://www.nabble.com/Column-Specific-Query-with-q-parameter-tp22345960p22345960.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>
Re: Column Specific Query with q parameter
Posted by dabboo <ag...@sapient.com>.
Hi,
Can somebody please give me an example as how to achieve it.
Thanks,
Amit Garg
dabboo wrote:
>
> Hi,
>
> I am implementing column specific query with q query parameter. for e.g.
>
> ?q=prdMainTitle_product_s:math & qt=dismaxrequest
>
> The above query doesnt work while if I use the same query with q.alt
> parameter, it works.
>
> ?q=&q.alt= prdMainTitle_product_s:math & qt=dismaxrequest
>
> Please suggest, how to achieve this with q query.
>
> Thanks,
> Amit Garg
>
--
View this message in context: http://www.nabble.com/Column-Specific-Query-with-q-parameter-tp22345960p22348016.html
Sent from the Solr - User mailing list archive at Nabble.com.