Elasticsearch index schema changes
The following Elasticsearch index schema changes are performance and customization-related enhancements that were introduced with the Commerce+ release.
Product schema
Customizations that involve facets may encounter restrictions in Commerce+ version. The
facets type has been changed from
object to flattened, as defined in
Ingest/config/product_elastic_schema.json.
"facets": {
"type": "flattened"
}For information about the features and limitations of this field type,
see Flattened field type in the ElasticSearch
Guide.Category schema
| Element | Schema change |
|---|---|
_id |
In Commerce+, category ids
are simplified by removing entries based on
parentCategoryId.
|
category |
In Commerce+, category
definitions are simplified into single entries, by enabling them to
be defined with multiple parents. Top level categories
A leaf category, Dress, is under the category, Women, as well as the Hot Buys sales category.
|
Product schema
| Element | Schema change |
|---|---|
identifier |
In Commerce+ release, the
pn element is removed. This is due to the fact
that it duplicates the values of the sku
element.For example:
|
category |
In Commerce+ release, the
category element is simplified by removing
path entries. This information is placed into a
peer element, path_name. The
category entry only contains direct parent
categories. This eliminates many duplicate entries.For
example:
|
attributes |
In Commerce+ release, the
key element is removed. This is due to the fact
that it duplicates the values of the id
element.For example:
|