Elasticsearch index schema changes
The following Elasticsearch index schema changes are performance and customization-related enhancements that were introduced with the HCL Commerce 9.1.7.0 and 9.1.9.0 releases.
![HCL Commerce Version 9.1.9.0 or later](../../base/images/9190plus.png)
Product schema
Customizations that involve facets may encounter restrictions in HCL Commerce 9.1.9.0 and subsequent versions. 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.![HCL Commerce Version 9.1.7.0 or later](../../base/images/9170plus.png)
Category schema
Element | Schema change |
---|---|
_id |
In 9.1.7.0 and later releases, category
ids are simplified by removing entries based on
parentCategoryId .
|
category |
In 9.1.7.0 and later releases, 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.
|
![HCL Commerce Version 9.1.7.0 or later](../../base/images/9170plus.png)
Product schema
Element | Schema change |
---|---|
identifier |
In 9.1.7.0 and later releases, the
pn element is removed. This is due to the fact
that it duplicates the values of the sku
element.For example:
|
category |
In 9.1.7.0 and later releases, 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 9.1.7.0 and later releases, the
key element is removed. This is due to the fact
that it duplicates the values of the id
element.For example:
|