Hello, I have an doubt about what’s the best way to use initIndex in NodeJS server.
const index = algoliaSearch.initIndex(indexName);
The options are create a new instance of index on every request or create global index object and reuse this.
After analize the code the only diference I found is that create a new index for every request creates an index object with a clean cache, but this can be reached in the global object setting the
_useCache option to
So, what’s the right way to use initIndex? and why?
(Personally I think the right way is use a global object with
_useCache setted to