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 vinay kumar kaku <vk...@hotmail.com> on 2009/01/03 04:32:27 UTC
understanding queryNorm
Hi,
i wanted to understand how the queryNorm is calculated. i did read similarity documentation of lucene it says it is
1
�C�C�C�C�C�C�C�C�C�C�C�C�C�C
sqrt(sumOfSquaredWeights)
sumOfSquaredWeights =
q.getBoost() 2
��
��
(
idf(t) ��
t.getBoost()
) 2
what would be default q.getBoost() ? ( as i am not giving any value specifically any where in solr). t.getBoost() is 1 in my case as i am not boosting any term at query time. can some one explain with an example if you could ?
thank you,
vinay
_________________________________________________________________
Send e-mail anywhere. No map, no compass.
http://windowslive.com/oneline/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_anywhere_122008
Re: understanding queryNorm
Posted by Chris Hostetter <ho...@fucit.org>.
: i wanted to understand how the queryNorm is calculated. i did read
: similarity documentation of lucene it says it is
...
: what would be default q.getBoost() ? ( as i am not giving any value
: specifically any where in solr). t.getBoost() is 1 in my case as i am
all queries have a boost value, even if you dont' specify one they have a
default -- i believe it's "1" for every stock query, but a custom Impl
could have an alternate default if it really wanted to.
thea easiest way to visuallize a lot of this is with debugQuery=true
-Hoss