lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Bell (JIRA)" <>
Subject [jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name
Date Fri, 29 Apr 2011 04:56:03 GMT


Bill Bell commented on SOLR-2471:


I am not sure why we cannot communicate? I know how to AND two dismax queries... Just throw
them both into two fq params. Pretty simple. There are other ways to do it too.

But this is not my question. Is it possible to have two QT parameters in the same call to
Solr? I would like each of these fq params to have a pre-defined qt list of parameters for
the localparams. 

fq={!dismax qt=second}bill
fq={!dismax qt=third}tom

In solrconfig:

qt=second would be defined with qf="name" and other params like mm.
qt=third would be defined with qf="name2" and other params like mm.

But I guess this is not possible since ALL the params are being loaded from including the
2 fq ones.

If you want you can close this, but it would be a nice feature.

I would want it to work that each localParams are set by "second" and "third". 

> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>                 Key: SOLR-2471
>                 URL:
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Bill Bell
> We are having a problem with the following query. If we have two localparams (using fq)
and use QT= it does not work.
> This does not find any results:
> http://localhost:8983/solr/provs/select?qname=john&qspec=dent&fq={!type=dismax
qt=namespec v=$qspec}&fq={!type=dismax qt=dismaxname v=$qname}&q=_val_:"{!type=dismax
qt=namespec v=$qspec}" _val_:"{!type=dismax qt=dismaxname v=$qname}"&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score
> This works okay. It returns a few results.
> http://localhost:8983/solr/provs/select?qname=john&qspec=dent&fq={!type=dismax
qf=$qqf v=$qspec}&fq={!type=dismax qt=dismaxname v=$qname}&q=_val_:"{!type=dismax
qf=$qqf  v=$qspec}" _val_:"{!type=dismax qt=dismaxname v=$qname}" &qqf=specialties_ngram^1.0
> We would like to use a QT for both terms but it seems there is some kind of bug when
using two localparams and dismax filters with QT.

This message is automatically generated by JIRA.
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message