Indexing
...
Entities
Categories

Anchor Categories

1min

Out of the box, the Klevu plugin respects the is_anchor category setting.

To change this behaviour and ignore anchor categories you can add a before plugin on ParentAnchorCategoryIdProvider and return an empty array.

XML


Create the Plugin class.

Vendor/Module/Plugin/Service/Provider/Catalog/ParentAnchorCategoryIdProviderPlugin.php


Setting categoryIds param as an empty array will return an empty array skipping any extra database calls.