You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Rohan Thakur <ro...@gmail.com> on 2013/03/06 09:09:08 UTC

query about length normalization in solr for relevance score

hi all

I wanted to confirm that while taking length normalization of document into
count while calculating the scores of the document in solr does solr take
length of complete document or the particular field in the document that we
are querying on. Like I have 5 fields in each document but when I am
querying I am searching on one default single field so I wanted to know
does solr not takes the length of this single field in to count for the
document or total length of the document that is adding length of all the
fields in that document.

thanks in advance.

regards
Rohan

Re: query about length normalization in solr for relevance score

Posted by Rohan Thakur <ro...@gmail.com>.
hi

I think its not readable but if you open this in editor that gmail has like
while replying you can se the text in proper format that is indent.I tried
saving this output in other formats aswell but it is still the same...you
can see this properly while replying to the mail...

thanks
regards
Rohan

On Thu, Mar 7, 2013 at 11:48 AM, Rohan Thakur <ro...@gmail.com> wrote:

> yup I got that but can you please explain me how is it going on?
> I got this:
>
> "rawquerystring":"samsung ace metallic",
>     "querystring":"samsung ace metallic",
>     "parsedquery":"value:samsung value:ace value:metallic",
>     "parsedquery_toString":"value:samsung value:ace value:metallic",
>     "explain":{
>       "":"\n4.261568 = (MATCH) sum of:\n  0.82376236 = (MATCH) weight(value:samsung in 31646) [DefaultSimilarity], result of:\n    0.82376236 = score(doc=31646,freq=1.0 = termFreq=1.0\n), product of:\n      0.4396593 = queryWeight, product of:\n        5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.073329814 = queryNorm\n      1.873638 = fieldWeight in 31646, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31646)\n  1.8416842 = (MATCH) weight(value:ace in 31646) [DefaultSimilarity], result of:\n    1.8416842 = score(doc=31646,freq=1.0 = termFreq=1.0\n), product of:\n      0.65738964 = queryWeight, product of:\n        8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.073329814 = queryNorm\n      2.8015108 = fieldWeight in 31646, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31646)\n  1.5961217 = (MATCH) weight(value:metallic in 31646) [DefaultSimilarity], result of:\n    1.5961217 = score(doc=31646,freq=1.0 = termFreq=1.0\n), product of:\n      0.6119956 = queryWeight, product of:\n        8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.073329814 = queryNorm\n      2.6080608 = fieldWeight in 31646, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31646)\n",
>       "":"\n4.261568 = (MATCH) sum of:\n  0.82376236 = (MATCH) weight(value:samsung in 31701) [DefaultSimilarity], result of:\n    0.82376236 = score(doc=31701,freq=1.0 = termFreq=1.0\n), product of:\n      0.4396593 = queryWeight, product of:\n        5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.073329814 = queryNorm\n      1.873638 = fieldWeight in 31701, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31701)\n  1.8416842 = (MATCH) weight(value:ace in 31701) [DefaultSimilarity], result of:\n    1.8416842 = score(doc=31701,freq=1.0 = termFreq=1.0\n), product of:\n      0.65738964 = queryWeight, product of:\n        8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.073329814 = queryNorm\n      2.8015108 = fieldWeight in 31701, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31701)\n  1.5961217 = (MATCH) weight(value:metallic in 31701) [DefaultSimilarity], result of:\n    1.5961217 = score(doc=31701,freq=1.0 = termFreq=1.0\n), product of:\n      0.6119956 = queryWeight, product of:\n        8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.073329814 = queryNorm\n      2.6080608 = fieldWeight in 31701, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31701)\n",
>       "":"\n2.843143 = (MATCH) product of:\n  4.2647142 = (MATCH) sum of:\n    1.3180199 = (MATCH) weight(value:samsung in 1646) [DefaultSimilarity], result of:\n      1.3180199 = score(doc=1646,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.9978209 = fieldWeight in 1646, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.5 = fieldNorm(doc=1646)\n    2.9466946 = (MATCH) weight(value:ace in 1646) [DefaultSimilarity], result of:\n      2.9466946 = score(doc=1646,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        4.482417 = fieldWeight in 1646, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.5 = fieldNorm(doc=1646)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum of:\n    1.1532673 = (MATCH) weight(value:samsung in 3038) [DefaultSimilarity], result of:\n      1.1532673 = score(doc=3038,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.6230931 = fieldWeight in 3038, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 = fieldNorm(doc=3038)\n    2.2345703 = (MATCH) weight(value:metallic in 3038) [DefaultSimilarity], result of:\n      2.2345703 = score(doc=3038,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.6512852 = fieldWeight in 3038, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 = fieldNorm(doc=3038)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum of:\n    1.1532673 = (MATCH) weight(value:samsung in 20421) [DefaultSimilarity], result of:\n      1.1532673 = score(doc=20421,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.6230931 = fieldWeight in 20421, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 = fieldNorm(doc=20421)\n    2.2345703 = (MATCH) weight(value:metallic in 20421) [DefaultSimilarity], result of:\n      2.2345703 = score(doc=20421,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.6512852 = fieldWeight in 20421, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 = fieldNorm(doc=20421)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum of:\n    1.1532673 = (MATCH) weight(value:samsung in 24233) [DefaultSimilarity], result of:\n      1.1532673 = score(doc=24233,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.6230931 = fieldWeight in 24233, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 = fieldNorm(doc=24233)\n    2.2345703 = (MATCH) weight(value:metallic in 24233) [DefaultSimilarity], result of:\n      2.2345703 = score(doc=24233,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.6512852 = fieldWeight in 24233, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 = fieldNorm(doc=24233)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum of:\n    1.1532673 = (MATCH) weight(value:samsung in 30641) [DefaultSimilarity], result of:\n      1.1532673 = score(doc=30641,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.6230931 = fieldWeight in 30641, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 = fieldNorm(doc=30641)\n    2.2345703 = (MATCH) weight(value:metallic in 30641) [DefaultSimilarity], result of:\n      2.2345703 = score(doc=30641,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.6512852 = fieldWeight in 30641, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 = fieldNorm(doc=30641)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 18177) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=18177,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 18177, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=18177)\n    2.210021 = (MATCH) weight(value:ace in 18177) [DefaultSimilarity], result of:\n      2.210021 = score(doc=18177,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 18177, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=18177)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25394) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25394,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25394, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25394)\n    2.210021 = (MATCH) weight(value:ace in 25394) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25394,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25394, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25394)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25455) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25455,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25455, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25455)\n    2.210021 = (MATCH) weight(value:ace in 25455) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25455,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25455, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25455)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25638) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25638,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25638, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25638)\n    2.210021 = (MATCH) weight(value:ace in 25638) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25638,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25638, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25638)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25698) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25698,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25698, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25698)\n    2.210021 = (MATCH) weight(value:ace in 25698) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25698,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25698, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25698)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25758) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25758,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25758, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25758)\n    2.210021 = (MATCH) weight(value:ace in 25758) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25758,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25758, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25758)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 31591) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=31591,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 31591, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=31591)\n    2.210021 = (MATCH) weight(value:ace in 31591) [DefaultSimilarity], result of:\n      2.210021 = score(doc=31591,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 31591, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=31591)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 2830) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=2830,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 2830, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=2830)\n    1.915346 = (MATCH) weight(value:metallic in 2830) [DefaultSimilarity], result of:\n      1.915346 = score(doc=2830,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 2830, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=2830)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 2983) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=2983,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 2983, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=2983)\n    1.915346 = (MATCH) weight(value:metallic in 2983) [DefaultSimilarity], result of:\n      1.915346 = score(doc=2983,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 2983, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=2983)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 15693) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=15693,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 15693, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=15693)\n    1.915346 = (MATCH) weight(value:metallic in 15693) [DefaultSimilarity], result of:\n      1.915346 = score(doc=15693,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 15693, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=15693)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 15749) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=15749,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 15749, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=15749)\n    1.915346 = (MATCH) weight(value:metallic in 15749) [DefaultSimilarity], result of:\n      1.915346 = score(doc=15749,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 15749, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=15749)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 16803) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=16803,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 16803, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=16803)\n    1.915346 = (MATCH) weight(value:metallic in 16803) [DefaultSimilarity], result of:\n      1.915346 = score(doc=16803,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 16803, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=16803)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 21574) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=21574,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 21574, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=21574)\n    1.915346 = (MATCH) weight(value:metallic in 21574) [DefaultSimilarity], result of:\n      1.915346 = score(doc=21574,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 21574, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=21574)\n  0.6666667 = coord(2/3)\n"},
>
>
> thanks in advance
>
> regards
> Rohan
>
> On Wed, Mar 6, 2013 at 10:14 PM, Otis Gospodnetic <
> otis.gospodnetic@gmail.com> wrote:
>
>> That's a mighty long sentence, Rohan! :)
>>
>> If you append &debugQuery=true to the query URL you will see the scoring
>> explanation in all its glory.
>>
>> Otis
>> --
>> Solr & ElasticSearch Support
>> http://sematext.com/
>>
>>
>>
>>
>>
>> On Wed, Mar 6, 2013 at 6:55 AM, Rohan Thakur <ro...@gmail.com>
>> wrote:
>>
>> > one more thing how does the solr handles the score when we have multiple
>> > words as query parameters which are not consecutively present in the
>> filed
>> > that is indexed and we are querying on does it first searches for
>> document
>> > field containing both the term and then how does is find the scoring on
>> > them taking both the words collectively or separating them and adding
>> the
>> > scores and if adding the scores then how does is find scores
>> individually?
>> >
>> > On Wed, Mar 6, 2013 at 5:17 PM, Rohan Thakur <ro...@gmail.com>
>> wrote:
>> >
>> > > k thanks
>> > >
>> > >
>> > > On Wed, Mar 6, 2013 at 5:05 PM, Otis Gospodnetic <
>> > > otis.gospodnetic@gmail.com> wrote:
>> > >
>> > >> Hi Rohan,
>> > >>
>> > >> It's per field.
>> > >>
>> > >> Otis
>> > >> --
>> > >> Solr & ElasticSearch Support
>> > >> http://sematext.com/
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> On Wed, Mar 6, 2013 at 3:09 AM, Rohan Thakur <ro...@gmail.com>
>> > >> wrote:
>> > >>
>> > >> > hi all
>> > >> >
>> > >> > I wanted to confirm that while taking length normalization of
>> document
>> > >> into
>> > >> > count while calculating the scores of the document in solr does
>> solr
>> > >> take
>> > >> > length of complete document or the particular field in the document
>> > >> that we
>> > >> > are querying on. Like I have 5 fields in each document but when I
>> am
>> > >> > querying I am searching on one default single field so I wanted to
>> > know
>> > >> > does solr not takes the length of this single field in to count for
>> > the
>> > >> > document or total length of the document that is adding length of
>> all
>> > >> the
>> > >> > fields in that document.
>> > >> >
>> > >> > thanks in advance.
>> > >> >
>> > >> > regards
>> > >> > Rohan
>> > >> >
>> > >>
>> > >
>> > >
>> >
>>
>
>

Re: query about length normalization in solr for relevance score

Posted by Rohan Thakur <ro...@gmail.com>.
If you can explain any one line of I will figure out others....thanks

On Thu, Mar 7, 2013 at 11:48 AM, Rohan Thakur <ro...@gmail.com> wrote:

> yup I got that but can you please explain me how is it going on?
> I got this:
>
> "rawquerystring":"samsung ace metallic",
>     "querystring":"samsung ace metallic",
>     "parsedquery":"value:samsung value:ace value:metallic",
>     "parsedquery_toString":"value:samsung value:ace value:metallic",
>     "explain":{
>       "":"\n4.261568 = (MATCH) sum of:\n  0.82376236 = (MATCH) weight(value:samsung in 31646) [DefaultSimilarity], result of:\n    0.82376236 = score(doc=31646,freq=1.0 = termFreq=1.0\n), product of:\n      0.4396593 = queryWeight, product of:\n        5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.073329814 = queryNorm\n      1.873638 = fieldWeight in 31646, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31646)\n  1.8416842 = (MATCH) weight(value:ace in 31646) [DefaultSimilarity], result of:\n    1.8416842 = score(doc=31646,freq=1.0 = termFreq=1.0\n), product of:\n      0.65738964 = queryWeight, product of:\n        8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.073329814 = queryNorm\n      2.8015108 = fieldWeight in 31646, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31646)\n  1.5961217 = (MATCH) weight(value:metallic in 31646) [DefaultSimilarity], result of:\n    1.5961217 = score(doc=31646,freq=1.0 = termFreq=1.0\n), product of:\n      0.6119956 = queryWeight, product of:\n        8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.073329814 = queryNorm\n      2.6080608 = fieldWeight in 31646, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31646)\n",
>       "":"\n4.261568 = (MATCH) sum of:\n  0.82376236 = (MATCH) weight(value:samsung in 31701) [DefaultSimilarity], result of:\n    0.82376236 = score(doc=31701,freq=1.0 = termFreq=1.0\n), product of:\n      0.4396593 = queryWeight, product of:\n        5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.073329814 = queryNorm\n      1.873638 = fieldWeight in 31701, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31701)\n  1.8416842 = (MATCH) weight(value:ace in 31701) [DefaultSimilarity], result of:\n    1.8416842 = score(doc=31701,freq=1.0 = termFreq=1.0\n), product of:\n      0.65738964 = queryWeight, product of:\n        8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.073329814 = queryNorm\n      2.8015108 = fieldWeight in 31701, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31701)\n  1.5961217 = (MATCH) weight(value:metallic in 31701) [DefaultSimilarity], result of:\n    1.5961217 = score(doc=31701,freq=1.0 = termFreq=1.0\n), product of:\n      0.6119956 = queryWeight, product of:\n        8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.073329814 = queryNorm\n      2.6080608 = fieldWeight in 31701, product of:\n        1.0 = tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n        8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.3125 = fieldNorm(doc=31701)\n",
>       "":"\n2.843143 = (MATCH) product of:\n  4.2647142 = (MATCH) sum of:\n    1.3180199 = (MATCH) weight(value:samsung in 1646) [DefaultSimilarity], result of:\n      1.3180199 = score(doc=1646,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.9978209 = fieldWeight in 1646, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.5 = fieldNorm(doc=1646)\n    2.9466946 = (MATCH) weight(value:ace in 1646) [DefaultSimilarity], result of:\n      2.9466946 = score(doc=1646,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        4.482417 = fieldWeight in 1646, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.5 = fieldNorm(doc=1646)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum of:\n    1.1532673 = (MATCH) weight(value:samsung in 3038) [DefaultSimilarity], result of:\n      1.1532673 = score(doc=3038,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.6230931 = fieldWeight in 3038, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 = fieldNorm(doc=3038)\n    2.2345703 = (MATCH) weight(value:metallic in 3038) [DefaultSimilarity], result of:\n      2.2345703 = score(doc=3038,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.6512852 = fieldWeight in 3038, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 = fieldNorm(doc=3038)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum of:\n    1.1532673 = (MATCH) weight(value:samsung in 20421) [DefaultSimilarity], result of:\n      1.1532673 = score(doc=20421,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.6230931 = fieldWeight in 20421, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 = fieldNorm(doc=20421)\n    2.2345703 = (MATCH) weight(value:metallic in 20421) [DefaultSimilarity], result of:\n      2.2345703 = score(doc=20421,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.6512852 = fieldWeight in 20421, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 = fieldNorm(doc=20421)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum of:\n    1.1532673 = (MATCH) weight(value:samsung in 24233) [DefaultSimilarity], result of:\n      1.1532673 = score(doc=24233,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.6230931 = fieldWeight in 24233, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 = fieldNorm(doc=24233)\n    2.2345703 = (MATCH) weight(value:metallic in 24233) [DefaultSimilarity], result of:\n      2.2345703 = score(doc=24233,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.6512852 = fieldWeight in 24233, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 = fieldNorm(doc=24233)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum of:\n    1.1532673 = (MATCH) weight(value:samsung in 30641) [DefaultSimilarity], result of:\n      1.1532673 = score(doc=30641,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.6230931 = fieldWeight in 30641, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 = fieldNorm(doc=30641)\n    2.2345703 = (MATCH) weight(value:metallic in 30641) [DefaultSimilarity], result of:\n      2.2345703 = score(doc=30641,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.6512852 = fieldWeight in 30641, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 = fieldNorm(doc=30641)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 18177) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=18177,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 18177, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=18177)\n    2.210021 = (MATCH) weight(value:ace in 18177) [DefaultSimilarity], result of:\n      2.210021 = score(doc=18177,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 18177, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=18177)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25394) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25394,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25394, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25394)\n    2.210021 = (MATCH) weight(value:ace in 25394) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25394,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25394, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25394)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25455) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25455,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25455, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25455)\n    2.210021 = (MATCH) weight(value:ace in 25455) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25455,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25455, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25455)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25638) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25638,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25638, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25638)\n    2.210021 = (MATCH) weight(value:ace in 25638) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25638,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25638, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25638)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25698) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25698,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25698, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25698)\n    2.210021 = (MATCH) weight(value:ace in 25698) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25698,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25698, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25698)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 25758) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=25758,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 25758, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=25758)\n    2.210021 = (MATCH) weight(value:ace in 25758) [DefaultSimilarity], result of:\n      2.210021 = score(doc=25758,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 25758, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=25758)\n  0.6666667 = coord(2/3)\n",
>       "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 31591) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=31591,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 31591, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=31591)\n    2.210021 = (MATCH) weight(value:ace in 31591) [DefaultSimilarity], result of:\n      2.210021 = score(doc=31591,freq=1.0 = termFreq=1.0\n), product of:\n        0.65738964 = queryWeight, product of:\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.3618128 = fieldWeight in 31591, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 = fieldNorm(doc=31591)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 2830) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=2830,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 2830, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=2830)\n    1.915346 = (MATCH) weight(value:metallic in 2830) [DefaultSimilarity], result of:\n      1.915346 = score(doc=2830,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 2830, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=2830)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 2983) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=2983,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 2983, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=2983)\n    1.915346 = (MATCH) weight(value:metallic in 2983) [DefaultSimilarity], result of:\n      1.915346 = score(doc=2983,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 2983, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=2983)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 15693) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=15693,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 15693, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=15693)\n    1.915346 = (MATCH) weight(value:metallic in 15693) [DefaultSimilarity], result of:\n      1.915346 = score(doc=15693,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 15693, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=15693)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 15749) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=15749,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 15749, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=15749)\n    1.915346 = (MATCH) weight(value:metallic in 15749) [DefaultSimilarity], result of:\n      1.915346 = score(doc=15749,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 15749, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=15749)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 16803) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=16803,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 16803, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=16803)\n    1.915346 = (MATCH) weight(value:metallic in 16803) [DefaultSimilarity], result of:\n      1.915346 = score(doc=16803,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 16803, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=16803)\n  0.6666667 = coord(2/3)\n",
>       "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum of:\n    0.98851484 = (MATCH) weight(value:samsung in 21574) [DefaultSimilarity], result of:\n      0.98851484 = score(doc=21574,freq=1.0 = termFreq=1.0\n), product of:\n        0.4396593 = queryWeight, product of:\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n        2.2483656 = fieldWeight in 21574, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 = fieldNorm(doc=21574)\n    1.915346 = (MATCH) weight(value:metallic in 21574) [DefaultSimilarity], result of:\n      1.915346 = score(doc=21574,freq=1.0 = termFreq=1.0\n), product of:\n        0.6119956 = queryWeight, product of:\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n        3.129673 = fieldWeight in 21574, product of:\n          1.0 = tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n          8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 = fieldNorm(doc=21574)\n  0.6666667 = coord(2/3)\n"},
>
>
> thanks in advance
>
> regards
> Rohan
>
> On Wed, Mar 6, 2013 at 10:14 PM, Otis Gospodnetic <
> otis.gospodnetic@gmail.com> wrote:
>
>> That's a mighty long sentence, Rohan! :)
>>
>> If you append &debugQuery=true to the query URL you will see the scoring
>> explanation in all its glory.
>>
>> Otis
>> --
>> Solr & ElasticSearch Support
>> http://sematext.com/
>>
>>
>>
>>
>>
>> On Wed, Mar 6, 2013 at 6:55 AM, Rohan Thakur <ro...@gmail.com>
>> wrote:
>>
>> > one more thing how does the solr handles the score when we have multiple
>> > words as query parameters which are not consecutively present in the
>> filed
>> > that is indexed and we are querying on does it first searches for
>> document
>> > field containing both the term and then how does is find the scoring on
>> > them taking both the words collectively or separating them and adding
>> the
>> > scores and if adding the scores then how does is find scores
>> individually?
>> >
>> > On Wed, Mar 6, 2013 at 5:17 PM, Rohan Thakur <ro...@gmail.com>
>> wrote:
>> >
>> > > k thanks
>> > >
>> > >
>> > > On Wed, Mar 6, 2013 at 5:05 PM, Otis Gospodnetic <
>> > > otis.gospodnetic@gmail.com> wrote:
>> > >
>> > >> Hi Rohan,
>> > >>
>> > >> It's per field.
>> > >>
>> > >> Otis
>> > >> --
>> > >> Solr & ElasticSearch Support
>> > >> http://sematext.com/
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> On Wed, Mar 6, 2013 at 3:09 AM, Rohan Thakur <ro...@gmail.com>
>> > >> wrote:
>> > >>
>> > >> > hi all
>> > >> >
>> > >> > I wanted to confirm that while taking length normalization of
>> document
>> > >> into
>> > >> > count while calculating the scores of the document in solr does
>> solr
>> > >> take
>> > >> > length of complete document or the particular field in the document
>> > >> that we
>> > >> > are querying on. Like I have 5 fields in each document but when I
>> am
>> > >> > querying I am searching on one default single field so I wanted to
>> > know
>> > >> > does solr not takes the length of this single field in to count for
>> > the
>> > >> > document or total length of the document that is adding length of
>> all
>> > >> the
>> > >> > fields in that document.
>> > >> >
>> > >> > thanks in advance.
>> > >> >
>> > >> > regards
>> > >> > Rohan
>> > >> >
>> > >>
>> > >
>> > >
>> >
>>
>
>

Re: query about length normalization in solr for relevance score

Posted by Rohan Thakur <ro...@gmail.com>.
yup I got that but can you please explain me how is it going on?
I got this:

"rawquerystring":"samsung ace metallic",
    "querystring":"samsung ace metallic",
    "parsedquery":"value:samsung value:ace value:metallic",
    "parsedquery_toString":"value:samsung value:ace value:metallic",
    "explain":{
      "":"\n4.261568 = (MATCH) sum of:\n  0.82376236 = (MATCH)
weight(value:samsung in 31646) [DefaultSimilarity], result of:\n
0.82376236 = score(doc=31646,freq=1.0 = termFreq=1.0\n), product of:\n
     0.4396593 = queryWeight, product of:\n        5.9956417 =
idf(docFreq=408, maxDocs=60437)\n        0.073329814 = queryNorm\n
 1.873638 = fieldWeight in 31646, product of:\n        1.0 =
tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.3125 =
fieldNorm(doc=31646)\n  1.8416842 = (MATCH) weight(value:ace in 31646)
[DefaultSimilarity], result of:\n    1.8416842 =
score(doc=31646,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n        8.964834 =
idf(docFreq=20, maxDocs=60437)\n        0.073329814 = queryNorm\n
2.8015108 = fieldWeight in 31646, product of:\n        1.0 =
tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.3125 =
fieldNorm(doc=31646)\n  1.5961217 = (MATCH) weight(value:metallic in
31646) [DefaultSimilarity], result of:\n    1.5961217 =
score(doc=31646,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n        8.345795 =
idf(docFreq=38, maxDocs=60437)\n        0.073329814 = queryNorm\n
2.6080608 = fieldWeight in 31646, product of:\n        1.0 =
tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.3125 =
fieldNorm(doc=31646)\n",
      "":"\n4.261568 = (MATCH) sum of:\n  0.82376236 = (MATCH)
weight(value:samsung in 31701) [DefaultSimilarity], result of:\n
0.82376236 = score(doc=31701,freq=1.0 = termFreq=1.0\n), product of:\n
     0.4396593 = queryWeight, product of:\n        5.9956417 =
idf(docFreq=408, maxDocs=60437)\n        0.073329814 = queryNorm\n
 1.873638 = fieldWeight in 31701, product of:\n        1.0 =
tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n        0.3125 =
fieldNorm(doc=31701)\n  1.8416842 = (MATCH) weight(value:ace in 31701)
[DefaultSimilarity], result of:\n    1.8416842 =
score(doc=31701,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n        8.964834 =
idf(docFreq=20, maxDocs=60437)\n        0.073329814 = queryNorm\n
2.8015108 = fieldWeight in 31701, product of:\n        1.0 =
tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n        0.3125 =
fieldNorm(doc=31701)\n  1.5961217 = (MATCH) weight(value:metallic in
31701) [DefaultSimilarity], result of:\n    1.5961217 =
score(doc=31701,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n        8.345795 =
idf(docFreq=38, maxDocs=60437)\n        0.073329814 = queryNorm\n
2.6080608 = fieldWeight in 31701, product of:\n        1.0 =
tf(freq=1.0), with freq of:\n          1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n        0.3125 =
fieldNorm(doc=31701)\n",
      "":"\n2.843143 = (MATCH) product of:\n  4.2647142 = (MATCH) sum
of:\n    1.3180199 = (MATCH) weight(value:samsung in 1646)
[DefaultSimilarity], result of:\n      1.3180199 =
score(doc=1646,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.9978209 = fieldWeight in 1646, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.5 =
fieldNorm(doc=1646)\n    2.9466946 = (MATCH) weight(value:ace in 1646)
[DefaultSimilarity], result of:\n      2.9466946 =
score(doc=1646,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n          8.964834 =
idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n
    4.482417 = fieldWeight in 1646, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.5 =
fieldNorm(doc=1646)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum
of:\n    1.1532673 = (MATCH) weight(value:samsung in 3038)
[DefaultSimilarity], result of:\n      1.1532673 =
score(doc=3038,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.6230931 = fieldWeight in 3038, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 =
fieldNorm(doc=3038)\n    2.2345703 = (MATCH) weight(value:metallic in
3038) [DefaultSimilarity], result of:\n      2.2345703 =
score(doc=3038,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.6512852 = fieldWeight in 3038, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 =
fieldNorm(doc=3038)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum
of:\n    1.1532673 = (MATCH) weight(value:samsung in 20421)
[DefaultSimilarity], result of:\n      1.1532673 =
score(doc=20421,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.6230931 = fieldWeight in 20421, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 =
fieldNorm(doc=20421)\n    2.2345703 = (MATCH) weight(value:metallic in
20421) [DefaultSimilarity], result of:\n      2.2345703 =
score(doc=20421,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.6512852 = fieldWeight in 20421, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 =
fieldNorm(doc=20421)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum
of:\n    1.1532673 = (MATCH) weight(value:samsung in 24233)
[DefaultSimilarity], result of:\n      1.1532673 =
score(doc=24233,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.6230931 = fieldWeight in 24233, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 =
fieldNorm(doc=24233)\n    2.2345703 = (MATCH) weight(value:metallic in
24233) [DefaultSimilarity], result of:\n      2.2345703 =
score(doc=24233,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.6512852 = fieldWeight in 24233, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 =
fieldNorm(doc=24233)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.2585583 = (MATCH) product of:\n  3.3878374 = (MATCH) sum
of:\n    1.1532673 = (MATCH) weight(value:samsung in 30641)
[DefaultSimilarity], result of:\n      1.1532673 =
score(doc=30641,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.6230931 = fieldWeight in 30641, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.4375 =
fieldNorm(doc=30641)\n    2.2345703 = (MATCH) weight(value:metallic in
30641) [DefaultSimilarity], result of:\n      2.2345703 =
score(doc=30641,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.6512852 = fieldWeight in 30641, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.4375 =
fieldNorm(doc=30641)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 18177)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=18177,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 18177, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=18177)\n    2.210021 = (MATCH) weight(value:ace in
18177) [DefaultSimilarity], result of:\n      2.210021 =
score(doc=18177,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n          8.964834 =
idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.3618128 = fieldWeight in 18177, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 =
fieldNorm(doc=18177)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 25394)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=25394,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 25394, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25394)\n    2.210021 = (MATCH) weight(value:ace in
25394) [DefaultSimilarity], result of:\n      2.210021 =
score(doc=25394,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n          8.964834 =
idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.3618128 = fieldWeight in 25394, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25394)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 25455)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=25455,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 25455, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25455)\n    2.210021 = (MATCH) weight(value:ace in
25455) [DefaultSimilarity], result of:\n      2.210021 =
score(doc=25455,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n          8.964834 =
idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.3618128 = fieldWeight in 25455, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25455)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 25638)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=25638,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 25638, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25638)\n    2.210021 = (MATCH) weight(value:ace in
25638) [DefaultSimilarity], result of:\n      2.210021 =
score(doc=25638,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n          8.964834 =
idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.3618128 = fieldWeight in 25638, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25638)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 25698)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=25698,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 25698, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25698)\n    2.210021 = (MATCH) weight(value:ace in
25698) [DefaultSimilarity], result of:\n      2.210021 =
score(doc=25698,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n          8.964834 =
idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.3618128 = fieldWeight in 25698, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25698)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 25758)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=25758,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 25758, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25758)\n    2.210021 = (MATCH) weight(value:ace in
25758) [DefaultSimilarity], result of:\n      2.210021 =
score(doc=25758,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n          8.964834 =
idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.3618128 = fieldWeight in 25758, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 =
fieldNorm(doc=25758)\n  0.6666667 = coord(2/3)\n",
      "":"\n2.1323574 = (MATCH) product of:\n  3.198536 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 31591)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=31591,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 31591, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=31591)\n    2.210021 = (MATCH) weight(value:ace in
31591) [DefaultSimilarity], result of:\n      2.210021 =
score(doc=31591,freq=1.0 = termFreq=1.0\n), product of:\n
0.65738964 = queryWeight, product of:\n          8.964834 =
idf(docFreq=20, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.3618128 = fieldWeight in 31591, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.964834 = idf(docFreq=20, maxDocs=60437)\n          0.375 =
fieldNorm(doc=31591)\n  0.6666667 = coord(2/3)\n",
      "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 2830)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=2830,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 2830, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=2830)\n    1.915346 = (MATCH) weight(value:metallic in
2830) [DefaultSimilarity], result of:\n      1.915346 =
score(doc=2830,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.129673 = fieldWeight in 2830, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 =
fieldNorm(doc=2830)\n  0.6666667 = coord(2/3)\n",
      "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 2983)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=2983,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 2983, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=2983)\n    1.915346 = (MATCH) weight(value:metallic in
2983) [DefaultSimilarity], result of:\n      1.915346 =
score(doc=2983,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.129673 = fieldWeight in 2983, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 =
fieldNorm(doc=2983)\n  0.6666667 = coord(2/3)\n",
      "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 15693)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=15693,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 15693, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=15693)\n    1.915346 = (MATCH) weight(value:metallic in
15693) [DefaultSimilarity], result of:\n      1.915346 =
score(doc=15693,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.129673 = fieldWeight in 15693, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 =
fieldNorm(doc=15693)\n  0.6666667 = coord(2/3)\n",
      "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 15749)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=15749,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 15749, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=15749)\n    1.915346 = (MATCH) weight(value:metallic in
15749) [DefaultSimilarity], result of:\n      1.915346 =
score(doc=15749,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.129673 = fieldWeight in 15749, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 =
fieldNorm(doc=15749)\n  0.6666667 = coord(2/3)\n",
      "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 16803)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=16803,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 16803, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=16803)\n    1.915346 = (MATCH) weight(value:metallic in
16803) [DefaultSimilarity], result of:\n      1.915346 =
score(doc=16803,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.129673 = fieldWeight in 16803, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 =
fieldNorm(doc=16803)\n  0.6666667 = coord(2/3)\n",
      "":"\n1.9359072 = (MATCH) product of:\n  2.9038608 = (MATCH) sum
of:\n    0.98851484 = (MATCH) weight(value:samsung in 21574)
[DefaultSimilarity], result of:\n      0.98851484 =
score(doc=21574,freq=1.0 = termFreq=1.0\n), product of:\n
0.4396593 = queryWeight, product of:\n          5.9956417 =
idf(docFreq=408, maxDocs=60437)\n          0.073329814 = queryNorm\n
     2.2483656 = fieldWeight in 21574, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
5.9956417 = idf(docFreq=408, maxDocs=60437)\n          0.375 =
fieldNorm(doc=21574)\n    1.915346 = (MATCH) weight(value:metallic in
21574) [DefaultSimilarity], result of:\n      1.915346 =
score(doc=21574,freq=1.0 = termFreq=1.0\n), product of:\n
0.6119956 = queryWeight, product of:\n          8.345795 =
idf(docFreq=38, maxDocs=60437)\n          0.073329814 = queryNorm\n
    3.129673 = fieldWeight in 21574, product of:\n          1.0 =
tf(freq=1.0), with freq of:\n            1.0 = termFreq=1.0\n
8.345795 = idf(docFreq=38, maxDocs=60437)\n          0.375 =
fieldNorm(doc=21574)\n  0.6666667 = coord(2/3)\n"},


thanks in advance

regards
Rohan
On Wed, Mar 6, 2013 at 10:14 PM, Otis Gospodnetic <
otis.gospodnetic@gmail.com> wrote:

> That's a mighty long sentence, Rohan! :)
>
> If you append &debugQuery=true to the query URL you will see the scoring
> explanation in all its glory.
>
> Otis
> --
> Solr & ElasticSearch Support
> http://sematext.com/
>
>
>
>
>
> On Wed, Mar 6, 2013 at 6:55 AM, Rohan Thakur <ro...@gmail.com> wrote:
>
> > one more thing how does the solr handles the score when we have multiple
> > words as query parameters which are not consecutively present in the
> filed
> > that is indexed and we are querying on does it first searches for
> document
> > field containing both the term and then how does is find the scoring on
> > them taking both the words collectively or separating them and adding the
> > scores and if adding the scores then how does is find scores
> individually?
> >
> > On Wed, Mar 6, 2013 at 5:17 PM, Rohan Thakur <ro...@gmail.com>
> wrote:
> >
> > > k thanks
> > >
> > >
> > > On Wed, Mar 6, 2013 at 5:05 PM, Otis Gospodnetic <
> > > otis.gospodnetic@gmail.com> wrote:
> > >
> > >> Hi Rohan,
> > >>
> > >> It's per field.
> > >>
> > >> Otis
> > >> --
> > >> Solr & ElasticSearch Support
> > >> http://sematext.com/
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> On Wed, Mar 6, 2013 at 3:09 AM, Rohan Thakur <ro...@gmail.com>
> > >> wrote:
> > >>
> > >> > hi all
> > >> >
> > >> > I wanted to confirm that while taking length normalization of
> document
> > >> into
> > >> > count while calculating the scores of the document in solr does solr
> > >> take
> > >> > length of complete document or the particular field in the document
> > >> that we
> > >> > are querying on. Like I have 5 fields in each document but when I am
> > >> > querying I am searching on one default single field so I wanted to
> > know
> > >> > does solr not takes the length of this single field in to count for
> > the
> > >> > document or total length of the document that is adding length of
> all
> > >> the
> > >> > fields in that document.
> > >> >
> > >> > thanks in advance.
> > >> >
> > >> > regards
> > >> > Rohan
> > >> >
> > >>
> > >
> > >
> >
>

Re: query about length normalization in solr for relevance score

Posted by Otis Gospodnetic <ot...@gmail.com>.
That's a mighty long sentence, Rohan! :)

If you append &debugQuery=true to the query URL you will see the scoring
explanation in all its glory.

Otis
--
Solr & ElasticSearch Support
http://sematext.com/





On Wed, Mar 6, 2013 at 6:55 AM, Rohan Thakur <ro...@gmail.com> wrote:

> one more thing how does the solr handles the score when we have multiple
> words as query parameters which are not consecutively present in the filed
> that is indexed and we are querying on does it first searches for document
> field containing both the term and then how does is find the scoring on
> them taking both the words collectively or separating them and adding the
> scores and if adding the scores then how does is find scores individually?
>
> On Wed, Mar 6, 2013 at 5:17 PM, Rohan Thakur <ro...@gmail.com> wrote:
>
> > k thanks
> >
> >
> > On Wed, Mar 6, 2013 at 5:05 PM, Otis Gospodnetic <
> > otis.gospodnetic@gmail.com> wrote:
> >
> >> Hi Rohan,
> >>
> >> It's per field.
> >>
> >> Otis
> >> --
> >> Solr & ElasticSearch Support
> >> http://sematext.com/
> >>
> >>
> >>
> >>
> >>
> >> On Wed, Mar 6, 2013 at 3:09 AM, Rohan Thakur <ro...@gmail.com>
> >> wrote:
> >>
> >> > hi all
> >> >
> >> > I wanted to confirm that while taking length normalization of document
> >> into
> >> > count while calculating the scores of the document in solr does solr
> >> take
> >> > length of complete document or the particular field in the document
> >> that we
> >> > are querying on. Like I have 5 fields in each document but when I am
> >> > querying I am searching on one default single field so I wanted to
> know
> >> > does solr not takes the length of this single field in to count for
> the
> >> > document or total length of the document that is adding length of all
> >> the
> >> > fields in that document.
> >> >
> >> > thanks in advance.
> >> >
> >> > regards
> >> > Rohan
> >> >
> >>
> >
> >
>

Re: query about length normalization in solr for relevance score

Posted by Rohan Thakur <ro...@gmail.com>.
one more thing how does the solr handles the score when we have multiple
words as query parameters which are not consecutively present in the filed
that is indexed and we are querying on does it first searches for document
field containing both the term and then how does is find the scoring on
them taking both the words collectively or separating them and adding the
scores and if adding the scores then how does is find scores individually?

On Wed, Mar 6, 2013 at 5:17 PM, Rohan Thakur <ro...@gmail.com> wrote:

> k thanks
>
>
> On Wed, Mar 6, 2013 at 5:05 PM, Otis Gospodnetic <
> otis.gospodnetic@gmail.com> wrote:
>
>> Hi Rohan,
>>
>> It's per field.
>>
>> Otis
>> --
>> Solr & ElasticSearch Support
>> http://sematext.com/
>>
>>
>>
>>
>>
>> On Wed, Mar 6, 2013 at 3:09 AM, Rohan Thakur <ro...@gmail.com>
>> wrote:
>>
>> > hi all
>> >
>> > I wanted to confirm that while taking length normalization of document
>> into
>> > count while calculating the scores of the document in solr does solr
>> take
>> > length of complete document or the particular field in the document
>> that we
>> > are querying on. Like I have 5 fields in each document but when I am
>> > querying I am searching on one default single field so I wanted to know
>> > does solr not takes the length of this single field in to count for the
>> > document or total length of the document that is adding length of all
>> the
>> > fields in that document.
>> >
>> > thanks in advance.
>> >
>> > regards
>> > Rohan
>> >
>>
>
>

Re: query about length normalization in solr for relevance score

Posted by Rohan Thakur <ro...@gmail.com>.
k thanks

On Wed, Mar 6, 2013 at 5:05 PM, Otis Gospodnetic <otis.gospodnetic@gmail.com
> wrote:

> Hi Rohan,
>
> It's per field.
>
> Otis
> --
> Solr & ElasticSearch Support
> http://sematext.com/
>
>
>
>
>
> On Wed, Mar 6, 2013 at 3:09 AM, Rohan Thakur <ro...@gmail.com> wrote:
>
> > hi all
> >
> > I wanted to confirm that while taking length normalization of document
> into
> > count while calculating the scores of the document in solr does solr take
> > length of complete document or the particular field in the document that
> we
> > are querying on. Like I have 5 fields in each document but when I am
> > querying I am searching on one default single field so I wanted to know
> > does solr not takes the length of this single field in to count for the
> > document or total length of the document that is adding length of all the
> > fields in that document.
> >
> > thanks in advance.
> >
> > regards
> > Rohan
> >
>

Re: query about length normalization in solr for relevance score

Posted by Otis Gospodnetic <ot...@gmail.com>.
Hi Rohan,

It's per field.

Otis
--
Solr & ElasticSearch Support
http://sematext.com/





On Wed, Mar 6, 2013 at 3:09 AM, Rohan Thakur <ro...@gmail.com> wrote:

> hi all
>
> I wanted to confirm that while taking length normalization of document into
> count while calculating the scores of the document in solr does solr take
> length of complete document or the particular field in the document that we
> are querying on. Like I have 5 fields in each document but when I am
> querying I am searching on one default single field so I wanted to know
> does solr not takes the length of this single field in to count for the
> document or total length of the document that is adding length of all the
> fields in that document.
>
> thanks in advance.
>
> regards
> Rohan
>