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 \<virtualtype name="klevu\indexingcategories\service\mapper\magentotoklevuattributemapper" type="klevu\indexing\service\mapper\magentotoklevuattributemapper"> \<arguments> \<argument name="entitytype" xsi\ type="const">magento\catalog\api\data\categoryattributeinterface entity type code\</argument> \<! category attribute prefix > \<argument name="prefix" xsi\ type="string">cat \</argument> \<argument name="attributemapping" xsi\ type="array"> \<item name="path" xsi\ type="string">categorypath\</item> \<item name="url key" xsi\ type="string">url\</item> \</argument> \</arguments> \</virtualtype> 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 \<virtualtype name="klevu\indexingcategories\service\mapper\magentotoklevuattributemapper"> \<arguments> \<argument name="prefix" xsi\ type="string">prefix \</argument> \</arguments> \</virtualtype> 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