*EncryptedIndex bound to it.
Parameters
Returns
The*EncryptedIndex bound to the loaded index.
Errors
*ValidationError
*ValidationError
Wraps
ErrInvalidKeyLength. indexKey is non-empty but not 32 bytes. Returned before any request is sent.*NotFoundError
*NotFoundError
No index named
indexName exists, or indexKey doesn’t match (HTTP 404, in most cases).*AuthenticationError
*AuthenticationError
indexKey doesn’t match an index that has vectors and is already in the service’s cache, or the client’s apiKey is missing or invalid; or, for a KMS-backed index, its KMS slot is missing or the provider call fails (HTTP 401).*ServiceError
*ServiceError
The service returns
5xx.*TransportError
*TransportError
The service can’t be reached.
A wrong key returns
*AuthenticationError (HTTP 401) when the index has vectors and the service already has it cached, and *NotFoundError (HTTP 404) otherwise, for example on an empty index or right after the service restarts. Catch both when checking for a bad key.