Optional Readonly__Phantom type markers carrying the factory-instantiated type parameters.
declare emits nothing at runtime — they exist so the overloaded
search signatures can select on scopedness and so member typing
survives assignment. Never assigned or read
Optional Readonly__ReadonlymembersEntity thunks declaring the index's complete membership
ReadonlymodelThe embedding model descriptor the index is provisioned with
ReadonlynameThe DynamoDB IndexName of the vector index
ReadonlyproviderThe consumer-supplied embed function. Typed as required configuration; optional here so a missing provider (EX: plain JS consumers) is caught by metadata validation rather than a runtime crash.
Optional ReadonlyscopedEntity thunk selecting the scope parent, when the index is scoped
ReadonlytableThe name of the table class the index is defined on
ReadonlyvectorThe table attribute the index's vectors are written under — the index's physical membership surface. The narrow type is truthful: registration validates the reserved-prefix rule before any construct is built
Stable fingerprint of the search-schema configuration (HASH alias,
sorted inline filter aliases, dimensions, distance function, vector
attribute) so IaC can detect that a declaration change implies a
destructive index replacement. Empty until metadata initialization
resolves it. Read-only
Table alias of the scoping foreign key attribute (the index HASH).
Undefined for unscoped indexes, and until metadata initialization
resolves it. Read-only
Sorted table aliases of the index's inline filters, including the auto-declared entity type filter. Empty until metadata initialization resolves it. Read-only: the returned array is frozen
Class names of the searchable member entities of the index. Empty until metadata initialization resolves it. Read-only: the returned array is frozen
Resolves the index's search schema. Called during metadata initialization once membership and inline filters have been validated.
Searches the vector index. Compiles to exactly one SearchVectors
operation; results carry complete typed entity instances with
similarity and the raw score, ordered most-similar-first.
The return type is inferred from in:: present, results narrow to that
member entity; omitted, results are the index's full member union,
discriminated via entity.type.
Scoped indexes take the scope value first — they are searchable only per scope value. Unscoped indexes take the query first and no scope id.
The scope value to search within (scoped indexes only).
The query text to embed, or { vector } with a precomputed vector.
Optionaloptions: IndexSearchOptions<Members, In>A promise resolving to the typed search results.
Searches the vector index. Compiles to exactly one SearchVectors
operation; results carry complete typed entity instances with
similarity and the raw score, ordered most-similar-first.
The return type is inferred from in:: present, results narrow to that
member entity; omitted, results are the index's full member union,
discriminated via entity.type.
Scoped indexes take the scope value first — they are searchable only per scope value. Unscoped indexes take the query first and no scope id.
The query text to embed, or { vector } with a precomputed vector.
Optionaloptions: IndexSearchOptions<Members, In>A promise resolving to the typed search results.
Represents the metadata for a vector index defined on a table class through the static
vectorIndexesfactory, and carries the index-anchoredsearchsurface. Holds the consumer-supplied configuration (name, vector attribute, model descriptor, provider, scope and membership thunks) plus the search schema resolved at metadata initialization (members,HASHalias, inline filter aliases, and the search-schema fingerprint).Entity thunks (
scopedBy,members) are never resolved at definition time — resolution happens during metadata initialization so index constants can be declared at module evaluation without freezing metadata against a partial entity graph.The type parameters are instantiated by the
vectorIndexesfactory and drive thesearchsurface only:Membersis the index's member entity union (the explicitmembers:list) andScopedselects the scope-id-first search signature. Metadata-internal code uses the defaults.Param: tableClassName
Name of the table class the index is defined on.
Param: options
Configuration options for the vector index.