I'm working with Meilisearch and using it with Angular InstantSearch v4.3.2, and I'm having trouble refreshing my search client cache.
My app will have a lot of CRUD user actions that will modify the data in my search index, and I need to update the data after each action.
I've found a documentation link for creating a refresh component, https://www.algolia.com/doc/guides/building-search-ui/going-further/improve-performance/angular/#caching, but I'd like to abstract that refresh functionality into a service and inject that service where I need to, preferably into an interceptor.
Couldn't find a way to do it. My idea was to follow a similar approach to the docs, and maybe inject the search instance into a new service, but it doesn't seem to work.