How to migrate initIndex / getObjects from algoliasearch v4 to v5
There is no `initIndex` replacement in v5: every method is available at the root of the client, and methods that were called on an index now take `indexName` as a parameter, e.g. `algoliasearch(appId, apiKey).getObjects[AlgoliaRecord]({ requests: [{ indexName: productsAlgoliaIndex, objectID: product…