Skip to content

Interface: CreateIndexOptions

Options for SearchClient.createIndex / SearchClient.ensureIndex. The goal is the same as the rest of the client: name a source table and a text column, and everything else - the endpoint, the embedding model, the index type, the sync mode - has a sensible default that infers from the workspace, overridable when a deployment needs to go deeper.

optional columnsToSync?: string[]

Extra columns to sync alongside the embedding source (Delta Sync).


optional embeddingDimension?: number

For a direct-access index: the embedding vector dimension (self-managed vectors, no source table).


optional embeddingModel?: string

Embedding model endpoint. A loose name is fuzzy-matched; when omitted the best embedding endpoint in the workspace is chosen (resolveEmbeddingModel).


optional embeddingSourceColumn?: string

The text column embeddings are computed from (Delta Sync). Defaults to the first of text / content / body present, else the caller must set it.


optional embeddingVectorColumn?: string

For a direct-access index: the column the vector is stored in. Defaults to embedding.


optional endpoint?: string

Vector Search endpoint to host the index on. Defaults to the plugin’s endpoint.


optional pipelineType?: "TRIGGERED" | "CONTINUOUS"

Sync mode for a Delta Sync index. TRIGGERED (default) syncs on demand; CONTINUOUS keeps fresh.


optional primaryKey?: string

Primary-key column. Defaults to id.


optional schema?: Record<string, string>

The column-name -> type map used to build a direct-access index’s schema_json (types: string, int, long, float, double, boolean, date, timestamp). Must include the primary key and any columns you upsert. Defaults to { id: "string", text: "string" }. The embedding vector column is added automatically.


optional signal?: AbortSignal

External cancellation.


optional sourceTable?: string

Source Delta table (catalog.schema.table) for a Delta Sync index. Provide this for the common case: Databricks computes and syncs embeddings from it. Omit it (and pass embeddingDimension) to create a direct-access index you write vectors to yourself.