'For each field in field_names, attach language-specific mappings that
will use specific analyzers for these fields in every language that we
support.
These mappings are used by the search filtering code if they exist.'

@classmethod
def attach_language_specific_analyzers(cls, mapping, field_names):

    def _locale_field_mapping(field, analyzer):
        return {('%s_l10n_%s' % (field, analyzer)): {'type': 'string', 'analyzer': (('%s_analyzer' % analyzer) if (analyzer in mkt.STEMMER_MAP) else analyzer)}}
    doc_type = cls.get_mapping_type_name()
    for analyzer in mkt.SEARCH_ANALYZER_MAP:
        if ((not settings.ES_USE_PLUGINS) and (analyzer in mkt.SEARCH_ANALYZER_PLUGINS)):
            log.info(('While    creating    mapping,    skipping    the    %s    analyzer' % analyzer))
            continue
        for field in field_names:
            mapping[doc_type]['properties'].update(_locale_field_mapping(field, analyzer))
        return mapping
