Search index schema customization file x-schema.xml

Adding new fields into the index schema requires modifying the x-schema.xml file to add the new index field. Typically, an existing index is updated to add new fields (local index). In other instances, IBM recommends to extend the product index by creating an index as an extension of an existing index (extension index). The following snippet is a sample index field for the catentry_id in the CatalogEntry index:


WebSphere Commerce field types

In addition to native Solr field types, WebSphere Commerce introduces some custom field types. For example:


Valid attributes for fields

The following list summarizes the valid attributes for fields;

Note: When you work with an extension index, be aware of the following guidelines when using the indexed and stored fields:


WebSphere Commerce text field naming convention

The following naming convention is followed for text fields in WebSphere Commerce Search:

Note:


Local index

The index fields are defined in the fields section of the x-schema.xml file in the following directory:

Note: The x-schema.xml file is locale-specific, as some data types use locale-specific tokenizers. To customize the index schema, modify the x-schema.xml file. The following configuration is an example of adding the catalog entry customizable fields, field1, field3, and field5 to the CatalogEntry index: