[ You are here: XTF -> Tag Reference -> crossQuery -> Search Result Formatter -> Score Explanation Tag ]

Score Explanation Tag

This optional tag contains an explanation of how the score used to rank a document hit was calculated. This tag has the form:
<explanation value="Score" description="Description">
    <explanation...>
    <explanation...>
    ...
</explanation>
where
Score is a floating-point number calculated by XTF
Description is a brief, technical description of how this score value was calculated.
To further describe the score, there may be one or more nested <explanation> elements which break down the score's components, and they may have their own nested explanations in turn.

Score explanations are enabled by setting the explainScores attribute of the Query Tag produced by the Query Parser stylesheet. In the default XTF stylesheets, one can simply add &explainScores=1 to the query URL.