2011-08-14 98 views
2

我正在調試我的助推算法,並且我無法使調試文本結束。在的問題是以下文本:幫助理解Solr調試

358.5638 =產物(常量(1.0E10),DIV(INT(觀看次數)= 47092,MS(const的(1313350611991),STR(UploadDate)= 2008-09-19T16: 30:16Z)))

現在,如果我做我的數學正確,我們得到1E10 * 47092/MS(NOW '' that_date')= 1E10 * 47092/9.1510096E10 = 5146.09885。

更糟糕的是,似乎沒有一個模式。在本例的結果調試信息中,solr計算了314.40195,而我計算了33667.1973。所以從我的角度來看,solr將這兩個結果倒退了!

我是否感到困惑?

感興趣的讀者:這裏是上述兩個例子的調試信息。不過,我只對每個條目底部的小函數部分感興趣。

<str name="10525"> 
45.199703 = (MATCH) sum of: 
    1.2967482 = (MATCH) max plus 0.1 times others of: 
    0.1823791 = (MATCH) weight(primary_text_phonetic:FRT^0.25 in 6498), product of: 
     0.14184701 = queryWeight(primary_text_phonetic:FRT^0.25), product of: 
     0.25 = boost 
     4.7508817 = idf(docFreq=4940, maxDocs=210282) 
     0.11942795 = queryNorm 
     1.285745 = (MATCH) fieldWeight(primary_text_phonetic:FRT in 6498), product of: 
     1.7320508 = tf(termFreq(primary_text_phonetic:FRT)=3) 
     4.7508817 = idf(docFreq=4940, maxDocs=210282) 
     0.15625 = fieldNorm(field=primary_text_phonetic, doc=6498) 
    1.2785102 = (MATCH) weight(primary_text:friday in 6498), product of: 
     0.6856842 = queryWeight(primary_text:friday), product of: 
     5.741405 = idf(docFreq=1834, maxDocs=210282) 
     0.11942795 = queryNorm 
     1.8645759 = (MATCH) fieldWeight(primary_text:friday in 6498), product of: 
     1.7320508 = tf(termFreq(primary_text:friday)=3) 
     5.741405 = idf(docFreq=1834, maxDocs=210282) 
     0.1875 = fieldNorm(field=primary_text, doc=6498) 
    1.0804138 = (MATCH) max plus 0.1 times others of: 
    0.18776983 = (MATCH) weight(phrase_phonetic:FRT^0.25 in 6498), product of: 
     0.14540447 = queryWeight(phrase_phonetic:FRT^0.25), product of: 
     0.25 = boost 
     4.870032 = idf(docFreq=4385, maxDocs=210282) 
     0.11942795 = queryNorm 
     1.2913622 = (MATCH) fieldWeight(phrase_phonetic:FRT in 6498), product of: 
     1.4142135 = tf(termFreq(phrase_phonetic:FRT)=2) 
     4.870032 = idf(docFreq=4385, maxDocs=210282) 
     0.1875 = fieldNorm(field=phrase_phonetic, doc=6498) 
    1.0616368 = (MATCH) weight(phrase:friday in 6498), product of: 
     0.6914851 = queryWeight(phrase:friday), product of: 
     5.789977 = idf(docFreq=1747, maxDocs=210282) 
     0.11942795 = queryNorm 
     1.5352995 = (MATCH) fieldWeight(phrase:friday in 6498), product of: 
     1.4142135 = tf(termFreq(phrase:friday)=2) 
     5.789977 = idf(docFreq=1747, maxDocs=210282) 
     0.1875 = fieldNorm(field=phrase, doc=6498) 
    42.82254 = (MATCH) FunctionQuery(product(const(1.0E10),div(int(ViewCount),ms(const(1313350611991),str(UploadDate))))), product of: 
    358.5638 = product(const(1.0E10),div(int(ViewCount)=47092,ms(const(1313350611991),str(UploadDate)=2008-09-19T16:30:16Z))) 
    1.0 = boost 
    0.11942795 = queryNorm 
</str><str name="190925"> 
41.04527 = (MATCH) sum of: 
    1.6962012 = (MATCH) max plus 0.1 times others of: 
    0.28546843 = (MATCH) weight(primary_text_phonetic:FRT^0.25 in 4562), product of: 
     0.14184701 = queryWeight(primary_text_phonetic:FRT^0.25), product of: 
     0.25 = boost 
     4.7508817 = idf(docFreq=4940, maxDocs=210282) 
     0.11942795 = queryNorm 
     2.0125093 = (MATCH) fieldWeight(primary_text_phonetic:FRT in 4562), product of: 
     3.8729835 = tf(termFreq(primary_text_phonetic:FRT)=15) 
     4.7508817 = idf(docFreq=4940, maxDocs=210282) 
     0.109375 = fieldNorm(field=primary_text_phonetic, doc=4562) 
    1.6676544 = (MATCH) weight(primary_text:friday in 4562), product of: 
     0.6856842 = queryWeight(primary_text:friday), product of: 
     5.741405 = idf(docFreq=1834, maxDocs=210282) 
     0.11942795 = queryNorm 
     2.27 = (MATCH) fieldWeight(primary_text:friday in 4562), product of: 
     3.8729835 = tf(termFreq(primary_text:friday)=15) 
     5.741405 = idf(docFreq=1834, maxDocs=210282) 
     0.109375 = fieldNorm(field=primary_text, doc=4562) 
    1.8006895 = (MATCH) max plus 0.1 times others of: 
    0.31294972 = (MATCH) weight(phrase_phonetic:FRT^0.25 in 4562), product of: 
     0.14540447 = queryWeight(phrase_phonetic:FRT^0.25), product of: 
     0.25 = boost 
     4.870032 = idf(docFreq=4385, maxDocs=210282) 
     0.11942795 = queryNorm 
     2.1522703 = (MATCH) fieldWeight(phrase_phonetic:FRT in 4562), product of: 
     1.4142135 = tf(termFreq(phrase_phonetic:FRT)=2) 
     4.870032 = idf(docFreq=4385, maxDocs=210282) 
     0.3125 = fieldNorm(field=phrase_phonetic, doc=4562) 
    1.7693945 = (MATCH) weight(phrase:friday in 4562), product of: 
     0.6914851 = queryWeight(phrase:friday), product of: 
     5.789977 = idf(docFreq=1747, maxDocs=210282) 
     0.11942795 = queryNorm 
     2.5588324 = (MATCH) fieldWeight(phrase:friday in 4562), product of: 
     1.4142135 = tf(termFreq(phrase:friday)=2) 
     5.789977 = idf(docFreq=1747, maxDocs=210282) 
     0.3125 = fieldNorm(field=phrase, doc=4562) 
    37.548378 = (MATCH) FunctionQuery(product(const(1.0E10),div(int(ViewCount),ms(const(1313350611991),str(UploadDate))))), product of: 
    314.40195 = product(const(1.0E10),div(int(ViewCount)=41292,ms(const(1313350611991),str(UploadDate)=2011-03-25T21:03:52Z))) 
    1.0 = boost 
    0.11942795 = queryNorm 
</str> 

回答

0

能否請您解釋一下爲什麼會出現在

毫秒(常量(1313350611991),STR(UploadDate)= 2008-09-19T16:30:16Z)一個STR功能))。

我假設uploadDate的數據類型是TrieDateField。

如何使用類似

毫秒(NOW,uploadDate)