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 Mark Fletcher <ma...@gmail.com> on 2010/04/10 12:51:25 UTC

dismax and qf

Hi,

I use *dismax* and have specified my fields to be boosted in the qf
parameter in solrconfig.xml. What I understand is that in the search URL
also I can specify these qf value by doing the addition &qf=field1^100
field2^200 which can override the boost specified to each field in
solrconfig.xml. But when I change the boosts like this in my URL for the
various fields, I still don't
find any difference at all in the order in which the results are coming. I
have many fields specified in qf. I changed their boost by changing say *
field1^2.0* to *field1^1000 *in the query URL but I find no change in the
order in which the results still come.

Is there any problem in using the qf parameter like this as part of the
query URL and varying the boosts (relevancy) to check how the order of
results vary. My aim is to see how the results would change if I boosted
some fields more from others or the viceversa of decreased boost of some
fields compared to others.

Could some one pls help!

Thanks.
Mark.

Re: dismax and qf

Posted by Erik Hatcher <er...@gmail.com>.
Add &debugQuery=true to your URL, look at the parsed query in the  
debug output to see if things changed there between the two qf values,  
and then take a look at the score explanations in the debug output.

	Erik

On Apr 10, 2010, at 6:51 AM, Mark Fletcher wrote:

> Hi,
>
> I use *dismax* and have specified my fields to be boosted in the qf
> parameter in solrconfig.xml. What I understand is that in the search  
> URL
> also I can specify these qf value by doing the addition &qf=field1^100
> field2^200 which can override the boost specified to each field in
> solrconfig.xml. But when I change the boosts like this in my URL for  
> the
> various fields, I still don't
> find any difference at all in the order in which the results are  
> coming. I
> have many fields specified in qf. I changed their boost by changing  
> say *
> field1^2.0* to *field1^1000 *in the query URL but I find no change  
> in the
> order in which the results still come.
>
> Is there any problem in using the qf parameter like this as part of  
> the
> query URL and varying the boosts (relevancy) to check how the order of
> results vary. My aim is to see how the results would change if I  
> boosted
> some fields more from others or the viceversa of decreased boost of  
> some
> fields compared to others.
>
> Could some one pls help!
>
> Thanks.
> Mark.


AW: dismax and qf

Posted by Ma...@rzf.fin-nrw.de.
have you given the url like

	&qf=field1^100+field2^200 

i also first tried something like &qf="field1^100 field2^200" which never
worked, when i used the + sign it works.

markus

> -----Ursprüngliche Nachricht-----
> Von: Mark Fletcher [mailto:mark.fletcher2004@gmail.com] 
> Gesendet: Samstag, 10. April 2010 12:51
> An: solr-user@lucene.apache.org
> Betreff: dismax and qf
> 
> Hi,
> 
> I use *dismax* and have specified my fields to be boosted in the qf
> parameter in solrconfig.xml. What I understand is that in the 
> search URL
> also I can specify these qf value by doing the addition &qf=field1^100
> field2^200 which can override the boost specified to each field in
> solrconfig.xml. But when I change the boosts like this in my 
> URL for the
> various fields, I still don't
> find any difference at all in the order in which the results 
> are coming. I
> have many fields specified in qf. I changed their boost by 
> changing say *
> field1^2.0* to *field1^1000 *in the query URL but I find no 
> change in the
> order in which the results still come.
> 
> Is there any problem in using the qf parameter like this as 
> part of the
> query URL and varying the boosts (relevancy) to check how the order of
> results vary. My aim is to see how the results would change 
> if I boosted
> some fields more from others or the viceversa of decreased 
> boost of some
> fields compared to others.
> 
> Could some one pls help!
> 
> Thanks.
> Mark.
> 

Re: dismax and qf

Posted by Erick Erickson <er...@gmail.com>.
Perhaps a silly question, but it's amazing
how many of my problems turn out to be
something I do to myself...

Are you sorting on anything other than
score?

Best
Erick

On Sat, Apr 10, 2010 at 6:51 AM, Mark Fletcher
<ma...@gmail.com>wrote:

> Hi,
>
> I use *dismax* and have specified my fields to be boosted in the qf
> parameter in solrconfig.xml. What I understand is that in the search URL
> also I can specify these qf value by doing the addition &qf=field1^100
> field2^200 which can override the boost specified to each field in
> solrconfig.xml. But when I change the boosts like this in my URL for the
> various fields, I still don't
> find any difference at all in the order in which the results are coming. I
> have many fields specified in qf. I changed their boost by changing say *
> field1^2.0* to *field1^1000 *in the query URL but I find no change in the
> order in which the results still come.
>
> Is there any problem in using the qf parameter like this as part of the
> query URL and varying the boosts (relevancy) to check how the order of
> results vary. My aim is to see how the results would change if I boosted
> some fields more from others or the viceversa of decreased boost of some
> fields compared to others.
>
> Could some one pls help!
>
> Thanks.
> Mark.
>