Extend the schema.xml file using the x-schema.xml file

The schema.xml file defines the default index schema structure. The default index schema can be extended using a separate XML file. The most common customizations of the index schema is defining new index fields.

We cannot directly modify or extend the schema.xml file. Instead, you work with the customizable x-schema.xml file.

Solr field types are defined in the file workspace_dir\search-config-ext\src\index\managed-solr\config\v3\common\x-schema-field-types.xml. Using the field definitions in this file as your template, you will modify the field and field type mappings in the file search-config-ext\src\index\managed-solr\config\v3\indextype\x-schema.xml (where indextype can be one of CatalogEntry, CatalogGroup, Price, or Unstructured).


Procedure

Open the customizable search index schema file, search-config-ext\src\index\managed-solr\config\v3\indextype\x-schema.xml.


Related reference
Solr schema file (schema.xml)