hi, thx. I think i forget the ^0.5
cheers Jason On 2/6/06, Yonik Seeley <[EMAIL PROTECTED]> wrote: > > Hi Jason, > I get the same thing for the queryNorm when I calculate it by hand: > 1/((1.7613963**2 + 1.326625**2)**.5) = 0.45349488111693986 > > -Yonik > > On 2/6/06, jason <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have a problem of understanding the queryNorm and fieldNorm. > > > > The following is an example. I try to follow what said in the Javadoc > > "Computes the normalization value for a query given the sum of the > squared > > weights of each of the query terms". But the result is different. > > > > ID:0 C:/PDF2Text/SearchEngine/File/SIG/sigkdd/p374-zhang.pdf|initialrank: 0 > > 0.31900567 = sum of: > > 0.03968133 = weight(contents:associ in 920), product of: > > 0.60161763 = queryWeight(contents:associ), product of: > > 1.326625 = idf(docFreq=830) > > 0.45349488 = queryNorm > > 0.065957725 = fieldWeight(contents:associ in 920), product of: > > 4.2426405 = tf(termFreq(contents:associ)=18) > > 1.326625 = idf(docFreq=830) > > 0.01171875 = fieldNorm(field=contents, doc=920) > > 0.27932435 = weight(contents:rule in 920), product of: > > 0.7987842 = queryWeight(contents:rule), product of: > > 1.7613963 = idf(docFreq=537) > > 0.45349488 = queryNorm > > 0.34968686 = fieldWeight(contents:rule in 920), product of: > > 16.941074 = tf(termFreq(contents:rule)=287) > > 1.7613963 = idf(docFreq=537) > > 0.01171875 = fieldNorm(field=contents, doc=920) > > > > regards > > jiang xing > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >