The service-based JavaScript/TypeScript SDK does not have a separate
loadIndex() method. Instead, use the createIndex() method to connect to existing indexes.This will be changed in the v0.12.0 release of the JavaScript/TypeScript SDK.Connecting to Existing Indexes
To connect to an existing index using the service JavaScript/TypeScript SDK, usecreateIndex() with the same parameters: