Skip to main content

getIndexName

Returns the name of the encrypted index.

Returns

string: The unique name identifier of the index.

Example Usage


getIndexType

Returns the type of the index (for example, 'ivf', 'ivfpq', or 'ivfflat').

Returns

string | undefined: The index type, or undefined if not set.

Example Usage


isTrained

Returns whether the index has been trained. Training is required for optimal query performance on IVF-based indexes.

Returns

boolean: true if the index has been trained, false otherwise.

Example Usage


getIndexConfig

Returns a copy of the index configuration object, preventing external modification of the internal state. The return type depends on the index type.

Returns

  • IndexIVFFlatModel: For IVFFlat indexes
  • IndexIVFModel: For IVF indexes
  • IndexIVFPQModel: For IVFPQ indexes

Example Usage

Configuration Properties

Common Properties (All Index Types)

IVFPQ-Specific Properties

Advanced Usage