protected static function getHighlightInfo($arguments)
    {
        $highlightInfo = [];
        $documentID = $arguments['document'][$arguments['idKey']];
        if ($documentID) {
            $highlighting = $arguments['results']->getHighlighting();

            if ($highlighting) {
                if ($arguments['alternateField']) {
                    $highlightInfo += $highlighting->getResult($documentID)->getField($arguments['alternateField']);
                } else {
                    $highlightInfo += $highlighting->getResult($documentID)->getField($arguments['field']);
                }
            }
        }

        return $highlightInfo;
    }