function getDocumentPart(Search_Type_Factory_Interface $typeFactory) { if ($this->getOption('indexGeometry') && $this->getValue()) { TikiLib::lib('smarty')->loadPlugin('smarty_modifier_sefurl'); $urls = array(); foreach (explode(',', $this->getValue()) as $value) { $urls[] = smarty_modifier_sefurl($value, 'file'); } return array('geo_located' => $typeFactory->identifier('y'), 'geo_file' => $typeFactory->identifier(implode(',', $urls)), 'geo_file_format' => $typeFactory->identifier($this->getOption('indexGeometry'))); } else { return parent::getDocumentPart($typeFactory); } }