Indexing
...
Entities
Categories

Custom Attribute Name Prefix

3min

As Magento has separate attributes for products and categories and these attributes can have the same name. Klevu does not differentiate attributes between entity types and therefore a name clash could occur with category and product attributes overwriting each other. To mitigate this we have added a prefix to any custom category attributes. By default this prefix is set to cat__.

module-m2-indexing-categories/etc/di.xml


The prefix only applies to custom attributes. Klevu standard attributes are not prefixed.

You are free to change this prefix like so

Vendor/Module/etc/di.xml


Note: The prefix is limited to underscores and alphanumeric characters only.

If you change the prefix you’ll also need to ensure that any cat__attribute_code references in your pipeline YMAL files and/or frontend search requests are updated with the new prefix.