Here's the sample response after running query with explain
set to true
,
[0] => Array
(
[value] => 24.375515
[description] => score(doc=1115115,freq=1.0 = termFreq=1.0), product of:
[details] => Array
(
[0] => Array
(
[value] => 3
[description] => boost
[details] => Array
(
)
)
[1] => Array
(
[value] => 7.09822
[description] => idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:
[details] => Array
(
[0] => Array
(
[value] => 976
[description] => docFreq
[details] => Array
(
)
)
[1] => Array
(
[value] => 1181380
[description] => docCount
[details] => Array
(
)
)
)
)
[2] => Array
(
[value] => 1.1446774
[description] => tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from:
[details] => Array
(
[0] => Array
(
[value] => 1
[description] => termFreq=1.0
[details] => Array
(
)
)
[1] => Array
(
[value] => 1.2
[description] => parameter k1
[details] => Array
(
)
)
[2] => Array
(
[value] => 0.75
[description] => parameter b
[details] => Array
(
)
)
[3] => Array
(
[value] => 5.788349
[description] => avgFieldLength
[details] => Array
(
)
)
[4] => Array
(
[value] => 4
[description] => fieldLength
[details] => Array
(
)
)
)
)
)
)
Within this subset, I am trying to understand,
- How
doc
anddocCount
are being calculated? - What's the difference between these 2 fields?
- What impact does
docs.deleted
field has in its calculation considering the values changes if the index contains some deleted documents?
Any help will be appreciated!