Using Magento 1 with latest magento 1 module.
We run two stores.
They share the same root catalog.
All products belong to both stores.
Each store has it’s own categories, with the products pertaining to that store assigned to said categories.
The categories not used in each store is set to disabled at each store level.
We use this setup to allow cross-site-cart usage - so if you add a product from store A to cart, then sawp to store B, you still have Store A’s products in cart (as they below to both stores)
The problem with the setup is that the search indexing is doing all products to the search on each store.
We want to limit the search to only products that are from categories in that store.
I don’t mind a way that requires a list of category ids to be used in a config option. We don’t have many categories, and they are stable, so don’t change much.
I can dig into code, and extend the indexing (i reckon) but was hoping there is a way to use config to add a limit to the indexing at each stores config level (so store config scope) via admin