/** * Redesign the content of the body you will index * * @param string $content The content you want to redesign * * @return string */ function getIndexableBody($content) { $this->loadRefConsultation(); $fields = $this->_ref_consultation->getTextcontent(); $fields_anesth = array(); foreach ($this->_specs as $_name => $_spec) { if ($_spec instanceof CTextSpec) { $fields_anesth[] = $_name; } } foreach ($fields_anesth as $_field_anesth) { $content .= " " . $this->{$_field_anesth}; } foreach ($fields as $_field) { $content .= " " . $this->_ref_consultation->{$_field}; } return $content; }