public function convertValue($value, $type) {
		if (is_array($value)) {
			$newReturn = array();
			foreach ($value as $v) {
				$newReturn[] = $this->convertValue($v, $type);
			}
			return $newReturn;
		} else {
			switch ($type) {
				case 'Date':
				case 'SS_Datetime': {
						// we don't want a complete iso8601 date, we want it 
						// in UTC time with a Z at the end. It's okay, php's
						// strtotime will correctly re-convert this to the correct
						// timestamp, but this is how Solr wants things.
						// If we don't have a full DateTime stamp we won't remove any hours
                        $hoursToRemove = date('Z');
						$ts = strtotime($value);
						$tsHTR = $ts - $hoursToRemove;
						$date = date('Y-m-d\TH:i:s\Z', $tsHTR);
						return $date;
				}
				case 'HTMLText': {
						return strip_tags($value);
				}
				case 'SolrGeoPoint': {
					return $value->y . ',' . $value->x;
				}
				default: {
					return $value;
				}
			}
		}
	}