public function getHistorySummary() {

		$history = $this->History();
		$query = new SQLSelect(
			"Term, COUNT(*) AS Frequency, ((COUNT(*) * 100.00) / {$history->count()}) AS FrequencyPercentage, AVG(Time) AS AverageTimeTaken, (Results > 0) AS Results",
			'ExtensibleSearch',
			"ExtensibleSearchPageID = {$this->ID}",
			array(
				'Frequency' => 'DESC',
				'Term' => 'ASC'
			),
			array(
				'Term',
				'Results'
			)
		);

		// These will require display formatting.

		$analytics = ArrayList::create();
		foreach($query->execute() as $result) {
			$result = ArrayData::create(
				$result
			);
			$result->FrequencyPercentage = sprintf('%.2f %%', $result->FrequencyPercentage);
			$result->AverageTimeTaken = sprintf('%.5f', $result->AverageTimeTaken);
			$result->Results = $result->Results ? _t('EXTENSIBLE_SEARCH.TRUE', 'true') : _t('EXTENSIBLE_SEARCH.FALSE', 'false');
			$analytics->push($result);
		}
		return $analytics;
	}