Hi, I have few questions about the cts:relevance-info result, please see below, when doing the search, I use the default scoring method, according to the document, it says formula: log(term frequency) * (inverse document frequency). My questions are:
1, how the logtf = 13 is calculated? In my document, it has only two hits for word "Test", in this case, I think tf = term frequency = 2 (?), then log(2)=0.3 ? And please note the two hits are from two different elements which have different weight setting in the database>Word Query setting, because I want some elements returned higher score. 2, what is the max weight can we set? I read some document, it says it is 16, but also mentions "super weight +64", I tried to set a higher number, I found I can set it up to <=67. <qry:relevance-info xmlns:qry="http://marklogic.com/cts/query"> <qry:score formula="(256*scoreSum/weightSum)+(256*qualityWeight*documentQuality)" computation="(256*650/2)+(256*1*0)">83200</qry:score> <qry:confidence formula="sqrt(score/(256*8*maxlogtf*maxidf))" computation="sqrt(83200/(256*8*18*log(7293012)))">0.377919</qry:confidence> <qry:fitness formula="sqrt(score/(256*8*maxlogtf*avgidf))" computation="sqrt(83200/(256*8*18*(8.70297/2)))">0.720181</qry:fitness> <qry:term weight="6.25"> <qry:score formula="8*weight*logtf" computation="50*13">650</qry:score> <qry:key>6140431270600128083</qry:key> <qry:annotation>word("Test")</qry:annotation> </qry:term> </qry:relevance-info> Thank you, John
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
