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.
Create the Plugin class.
Setting categoryIds param as an empty array will return an empty array skipping any extra database calls.