protected void addSearchField(
        CmsXmlContentDefinition contentDefinition,
        CmsSearchField field,
        I_CmsXmlContentHandler.MappingType type) {

        Locale locale = null;
        if (field instanceof CmsSolrField) {
            locale = ((CmsSolrField)field).getLocale();
        }
        String key = CmsXmlUtils.concatXpath(locale != null ? locale.toString() : null, field.getName());
        switch (type) {
            case PAGE:
                m_searchFieldsPage.put(key, field);
                break;
            case ELEMENT:
            default:
                m_searchFields.put(key, field);
                break;
        }
    }
protected void addSearchField ( CmsXmlContentDefinition contentDefinition , CmsSearchField field , I_CmsXmlContentHandler . MappingType type ) { Locale locale = null ; if ( field instanceof CmsSolrField ) { locale = ( ( CmsSolrField ) field ) . getLocale ( ) ; } String key = CmsXmlUtils . concatXpath ( locale != null ? locale . toString ( ) : null , field . getName ( ) ) ; switch ( type ) { case PAGE : m_searchFieldsPage . put ( key , field ) ; break ; case ELEMENT : default : m_searchFields . put ( key , field ) ; break ; } }
Adds a Solr field for an element.<p>

@param contentDefinition the XML content definition this XML content handler belongs to
@param field the Solr field
@param type the type, specifying if the field should be attached to the document of the XML content or to all container pages the content is placed on