headScript()->appendFile('vendor/chart.js'); $this->headScript()->appendFile('explain.js'); $explanation = $this->explanation; $recordId = $explanation->getRecordId(); $decimalPlaces = $explanation->getDecimalPlaces(); $maxScore = $explanation->getMaxScore(); $totalScore = $explanation->getTotalScore(); $boost = $explanation->getBoost(); $coord = $explanation->getCoord(); $rest = $explanation->getRest(); $restExplanation = $explanation->getExplanationForRest(); $link = $this->recordLinker()->getUrl($this->driver); ?>

transEsc('explain_top_relevance')?>: localizedNumber($maxScore, $decimalPlaces)?>

transEsc('explain_for_search')?>: getLookfor()?>

translate('explain_relevance', [ '%%recordId%%' => '' . $this->escapeHtml($recordId) . '', '%%relevanceValue%%' => $this->localizedNumber($totalScore, $decimalPlaces)]) ?>
transEsc('explain_modified_value', [ '%%relevanceValue%%' => $this->localizedNumber($explanation->getBaseScore(), $decimalPlaces), ]) ?> transEsc('explain_coord', [ '%%relevanceValue%%' => $this->localizedNumber($explanation->getBaseScore(), $decimalPlaces), '%%coord%%' => $this->localizedNumber($coord['value'], $decimalPlaces), ]) ?> transEsc('explain_boost', [ '%%boost%%' => $this->localizedNumber($boost['value'], $decimalPlaces), ]) ?>
transEsc( 'explain_boost_description', [ '%%boost_description%%' => $boost['description'], ] ) ?>

getExplanation() as $explainElement): ?> explainElement($explainElement, $decimalPlaces); $shortExplainLabels[] = $renderedElement['shortLabel']; $shortExplain[] = $renderedElement['shortValue']; echo $renderedElement['completeLine']; ?>
transEsc('rest')?> explainElement($explainElement, $decimalPlaces)['completeLine'];?>
localizedNumber($rest['percent'], $decimalPlaces)?>% transEsc('explain_sum')?>

0): ?>
0): ?> transEsc('Relevance')], ]; ?>