public function fieldData($field, $forceType = null, $extraOptions = array()) { // Ensure that 'boost' is recorded here without being captured by solr $boost = null; if (array_key_exists('boost', $extraOptions)) { $boost = $extraOptions['boost']; unset($extraOptions['boost']); } $data = parent::fieldData($field, $forceType, $extraOptions); // Boost all fields with this name if (isset($boost)) { foreach ($data as $fieldName => $fieldInfo) { $this->boostedFields[$fieldName] = $boost; } } return $data; }