Thank you Mark! yes, i have realized i have to pass explicit doc_id for the explain API later. unfortunately, the previous GET was indexed as a document as per your explanation.
I will need to modify the mapping index because it was updated. though i still not sure how relevancy works. below was the modified explain i did run. what i am confused about that first records with high score having authors with high frequencey (i.e. 7) and with special characters in their name (i.e. M'ark), while 5th/7th record in result having same frequency (7) and without special characters in their name. i thought the authors without special characters would show first (i.e. Mark)!!
GET /evcafereindex2/author/aut_M64d649f815d2e14138dM725110178163220/_explain
{
"query" : {
"match" : { "audoc.authlast": {"query": "mark" }}
}
}
result
{
"_index": "myindex",
"_type": "author",
"_id": "123",
"matched": true,
"explanation": {
"value": 14.357386,
"description": "sum of:",
"details": [
{
"value": 14.357386,
"description": "weight(audoc.authlast:mark in 127662) [PerFieldSimilarity], result of:",
"details": [
{
"value": 14.357386,
"description": "score(doc=127662,freq=7.0 = termFreq=7.0\n), product of:",
"details": [
{
"value": 9.65505,
"description": "idf, computed as log(1 + (docCount - docFreq + 0.5) / (docFreq + 0.5)) from:",
"details": [
{
"value": 150,
"description": "docFreq",
"details":
},
{
"value": 2347855,
"description": "docCount",
"details":
}
]
},
{
"value": 1.4870337,
"description": "tfNorm, computed as (freq * (k1 + 1)) / (freq + k1 * (1 - b + b * fieldLength / avgFieldLength)) from:",
"details": [
{
"value": 7,
"description": "termFreq=7.0",
"details":
},
{
"value": 1.2,
"description": "parameter k1",
"details":
},
{
"value": 0.75,
"description": "parameter b",
"details":
},
{
"value": 2.094112,
"description": "avgFieldLength",
"details":
},
{
"value": 7.111111,
"description": "fieldLength",
"details":
}
]
}
]
}
]
},
{
"value": 0,
"description": "match on required clause, product of:",
"details": [
{
"value": 0,
"description": "# clause",
"details":
},
{
"value": 1,
"description": "_type:author",
"details":
}
]
}
]
}
}