Skip to content

@lancedb/lancedbDocs


@lancedb/lancedb / IndexConfig

Interface: IndexConfig

A description of an index currently configured on a column

Properties

columns

columns: string[];

The columns in the index

Currently this is always an array of size 1. In the future there may be more columns to represent composite indices.


createdAt?

optional createdAt: Date;

When the index was created.

undefined for remote tables or indices created before timestamps were tracked.


indexDetails?

optional indexDetails: any;

Index-type-specific details parsed as a JavaScript object.

Falls back to a raw string if JSON parsing fails. undefined for remote tables or when details are unavailable.


indexType

indexType: string;

The type of the index


indexUuid?

optional indexUuid: string;

The UUID of the first segment of the index.

undefined for remote tables, which do not yet surface this.


indexVersion?

optional indexVersion: number;

The on-disk index format version.

undefined for remote tables.


name

name: string;

The name of the index


numIndexedRows?

optional numIndexedRows: number;

The number of rows indexed, across all segments.

undefined for remote tables.


numSegments?

optional numSegments: number;

The number of segments that make up the index.

undefined for remote tables.


numUnindexedRows?

optional numUnindexedRows: number;

The number of rows not yet covered by this index.

undefined for remote tables.


sizeBytes?

optional sizeBytes: number;

The total size in bytes of all index files across all segments.

undefined for remote tables or indices without size tracking.


typeUrl?

optional typeUrl: string;

The protobuf type URL, a precise type identifier for the index.

undefined for remote tables.