/** * Generates the full Solr field name for a metadata subattribute. * Helper method to be used, if needed, by datatype-specific handlers. * Used particularly when indexing metadata of a related object. * * @param string $baseName * @param eZContentClassAttribute $classAttribute * @return string * * @example * If $baseName equals 'main_url_alias', and $classAttribute * has as identifier 'dummy', the return value will be : * 'submeta_dummy-main_url_alias_s' * * @see ezfSolrDocumentFieldObjectRelation */ public static function generateSubmetaFieldName($baseName, eZContentClassAttribute $classAttribute) { return self::$DocumentFieldName->lookupSchemaName(self::SUBMETA_FIELD_PREFIX . $classAttribute->attribute('identifier') . self::SUBATTR_FIELD_SEPARATOR . $baseName, eZSolr::getMetaAttributeType($baseName)); }