-Re: field length normalization
Jay Hill 2010-03-11, 23:36
The fieldNorm is computed like this: fieldNorm = lengthNorm * documentBoost
and the lengthNorm is: lengthNorm = 1/(numTermsInField)**.5
[note that the value is encoded as a single byte, so there is some precision
So the values are not pre-set for the lengthNorm, but for some counts the
fieldLength value winds up being the same because of the precision los. Here
is a list of lengthNorm values for 1 to 10 term fields:
# of terms lengthNorm
That's why, in your example, the lengthNorm for 3 and 4 is the same.
On Thu, Mar 11, 2010 at 9:50 AM, muneeb <[EMAIL PROTECTED]> wrote:
> : Did you reindex after setting omitNorms to false? I'm not sure whether or
> : not it is needed, but it makes sense.
> Yes i deleted the old index and reindexed it.
> Just to add another fact, that the titlles length is less than 10. I am not
> sure if solr has pre-set values for length normalizations, because for
> titles with 3 as well as 4 terms the fieldNorm is coming up as 0.5 (in the
> debugQuery section).
> View this message in context:
> Sent from the Solr - User mailing list archive at Nabble.com.