You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Bill Bell (JIRA)" <ji...@apache.org> on 2011/04/20 05:45:05 UTC

[jira] [Created] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Localparams not working with 2 fq parameters using qt=name
----------------------------------------------------------

                 Key: SOLR-2471
                 URL: https://issues.apache.org/jira/browse/SOLR-2471
             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 desc&rows=1000&start=0

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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Bill Bell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023483#comment-13023483 ] 

Bill Bell commented on SOLR-2471:
---------------------------------

I am trying to search two user imputed fields. I know in the standard
handler I can do specialty:dentist AND name:bill. But since they are user 
inputed I want to do 2 subqueries. 
That is why I have 2 fq parameters with different qf lists.

Does this make sense now?

> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>
>                 Key: SOLR-2471
>                 URL: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026951#comment-13026951 ] 

Yonik Seeley commented on SOLR-2471:
------------------------------------

bq. Is it possible to have two QT parameters in the same call to Solr?

Nope, see the response from Hoss: "qt selects the request handler used, but when local params are parsed the handler is has already been choosen (there is only one handler per request)"


> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>
>                 Key: SOLR-2471
>                 URL: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Hoss Man (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022303#comment-13022303 ] 

Hoss Man commented on SOLR-2471:
--------------------------------

Bill: based on the information givein in the bug report, i'm having troupble understanding what the goal is, let alone the problem.

could you perhaps post some URLs demonstrating the problem against a schema and data that is publicly available soe people can reproduce?  (either the example schema/data or one provided in an attachment). 

at a general level, i'm not really sure i understand what you would expect "qt" to do when used in localparams.  qt selects the request handler used, but when local params are parsed the handler is has already been choosen (there is only one handler per request) ... i'm fairly certain that the qt local patrams in your second example isn't doing anything -- but you said it works for you, hence my confusion about what your goal is.

> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>
>                 Key: SOLR-2471
>                 URL: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Resolved] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yonik Seeley resolved SOLR-2471.
--------------------------------

    Resolution: Invalid

Let's avoid asking questions in JIRA and take it to the mailing list in the future.

> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>
>                 Key: SOLR-2471
>                 URL: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023219#comment-13023219 ] 

Yonik Seeley commented on SOLR-2471:
------------------------------------

bq. What happens is the QT (solrconfig) dismaxname is used for both FQs.

As Hoss pointed out "qt" has nothing to do with dismax.
Perhaps you were thinking of "qf" for query fields?

> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>
>                 Key: SOLR-2471
>                 URL: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Bill Bell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023482#comment-13023482 ] 

Bill Bell commented on SOLR-2471:
---------------------------------

Ok. That is just what I called it. 

In one qt I have a long list of qf fields,
and in the other qt I have a different list of qf fields.

I separate the two do that the amount of incoming bandwidth
is reduced. 

I was hoping to gave one qt per localparams. But it seems not possible.



> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>
>                 Key: SOLR-2471
>                 URL: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13024935#comment-13024935 ] 

Yonik Seeley commented on SOLR-2471:
------------------------------------

bq. In one qt I have a long list of qf fields

I'm still at a loss to understand what you're trying to do with "qt".

bq. I know in the standard handler I can do specialty:dentist AND name:bill. But since they are user  inputed I want to do 2 subqueries. 

Ahhh, so does this all boil down to "how do you AND two dismax queries" (e.g. dismaxquery1 AND dismaxquery2)?

> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>
>                 Key: SOLR-2471
>                 URL: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Bill Bell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13026842#comment-13026842 ] 

Bill Bell commented on SOLR-2471:
---------------------------------

Yonik,

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
q=jones
qt=first
defType=dismax

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: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Bill Bell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023108#comment-13023108 ] 

Bill Bell commented on SOLR-2471:
---------------------------------

This is not a question. It is a bug.

Here is the problem:

I want to do two FQs (filtered queries) to reduce the results. Each FQ is a subquery. For example:

fq={!type=dismax qt=dismaxname v="bill"}
fq={!type=dismax qt=anotherfield v="doctor"}

What happens is the QT (solrconfig) dismaxname is used for both FQs. We need it to support 2 different QT names.

Is this clear? If not, I will send an example that show breakage.


> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>
>                 Key: SOLR-2471
>                 URL: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] [Commented] (SOLR-2471) Localparams not working with 2 fq parameters using qt=name

Posted by "Bill Bell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023110#comment-13023110 ] 

Bill Bell commented on SOLR-2471:
---------------------------------

Hoss,

Since they are LocalParams, why can't we have TWO QTs? One for each subquery? Based on what you are saying, this would be a new feature request...



> Localparams not working with 2 fq parameters using qt=name
> ----------------------------------------------------------
>
>                 Key: SOLR-2471
>                 URL: https://issues.apache.org/jira/browse/SOLR-2471
>             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 desc&rows=1000&start=0
> 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 specialties_search^2.0&fl=specialties_desc,score,hgid,specialties_search,specialties_ngram,first_middle_last_name&wt=csv&facet=true&facet.field=specialties_desc&sort=score desc&rows=1000&start=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: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org