We have a couple of indexes that are storing different data.
Depending on the page, we will change our indexName in Searchable to match the appropriate index.
We are finding that when switching from one index to the other, the hits from the previous index are showing under the new index, causing errors for us.
So you may be on the offers page and switching to the Listing page. For a second, hits for Offers are showing under Listings. It fixes itself, not sure how.
My thought is whenever you switch indexName, it would trigger algolia to clear their cache and do a new search with that new index.
One work around we thought might work is if the indexName is different and the objectID is the same, don’t update. Though this doesn’t work because it looks like every new hit is unmounted and mounted, not updated.
Am I understanding this wrong?
I can provide some code but not publicly as it’s an internal project.