*EncryptedIndex exposes index settings and training status as methods. Every getter except GetIndexName takes a context.Context and calls the service’s describe or training-status endpoint. Nothing is cached, so each call returns the current value.
GetIndexName
Dimension
0 if the index was created without a Dimension and nothing has been upserted yet.
Metric
"euclidean", "squared_euclidean", or "cosine".
NLists
1 for an untrained index; the trained list count after Train.
MetadataSchema
MetadataSchema or TextFields in CreateIndex. Never nil: an empty map when the index uses the default policy. The MetadataFieldPolicy fields are *bool; read them with GetFilterable(), GetPattern(), and GetFullText().
BM25
nil (with a nil error) when it has no full-text fields.
IsTrained
true if the index has been trained.
IsTraining
true while the service is training this index or has it queued for training. Requires the root key: with a per-user key the service returns HTTP 403 and the SDK returns *AuthenticationError.