Function: toCreateIndexOptions()
toCreateIndexOptions(
request,signal?):CreateIndexOptions
Map a validated CreateIndexRequest onto CreateIndexOptions, spreading only the fields that were supplied so the client’s own defaults (endpoint, embedding model, primary key, text column) still apply, and folding in the caller’s abort signal.
Parameters
Section titled “Parameters”request
Section titled “request”columnsToSync?
Section titled “columnsToSync?”string[] = ...
embeddingDimension?
Section titled “embeddingDimension?”number = ...
embeddingModel?
Section titled “embeddingModel?”string = ...
embeddingSourceColumn?
Section titled “embeddingSourceColumn?”string = ...
endpoint?
Section titled “endpoint?”string = ...
string = ...
pipelineType?
Section titled “pipelineType?”"TRIGGERED" | "CONTINUOUS" = ...
primaryKey?
Section titled “primaryKey?”string = ...
sourceTable?
Section titled “sourceTable?”string = ...
signal?
Section titled “signal?”AbortSignal