Note that there are some explanatory texts on larger screens.

plurals
  1. POHelp understanding Solr debug
    text
    copied!<p>I'm debugging my boosting algorithm and I can't make ends-up of the debug text. In question is the following text:</p> <blockquote> <p>358.5638 = product(const(1.0E10),div(int(ViewCount)=47092,ms(const(1313350611991),str(UploadDate)=2008-09-19T16:30:16Z)))</p> </blockquote> <p>Now, if I do my math correctly we get 1e10*47092/ms(NOW,''that_date'')=1e10*47092/9.1510096E10 = 5146.09885.</p> <p>What's worse is that there doesn't seem to be a pattern to it. In the debug information for the result proceeding this example, solr calculates 314.40195 whereas I calculate 33667.1973. So from my perspective, solr's getting these two results backwards!</p> <p>Were am I getting confused? </p> <p>For the interested reader: here's the debug info for both of the above examples. However I am only interested in the small FunctionQuery portions at the bottom of each entry.</p> <pre><code>&lt;str name="10525"&gt; 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 &lt;/str&gt;&lt;str name="190925"&gt; 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.4321027 = (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 &lt;/str&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload