protected function prepareResults(array &$results, array $options)
    {
        $reindexed = array();

        foreach ($results as &$result) {
            $this->prepareResult($result, $options);
            if (!empty($options['index'])) {
                $reindexed[$result[$options['index']]] = $result;
            }
        }

        if (!empty($options['index'])) {
            $results = $reindexed;
        }
    }