dyna-record
    Preparing search index...

    Interface IndexSearchOptions<Members, In>

    Options of a vector index's search. in: accepts a member entity name, drawn from the index's declared members — so every member is reachable, including one that carries only the scoping foreign key. Scoped and unscoped indexes narrow identically.

    interface IndexSearchOptions<
        Members extends default,
        In extends Members["type"],
    > {
        filter?: string extends Members["type"]
            ? SearchFilter
            : SearchFilterParams<NarrowMembersByName<Members, In>>;
        in?: In;
        topK?: number;
    }

    Type Parameters

    Index

    Properties

    Properties

    filter?: string extends Members["type"]
        ? SearchFilter
        : SearchFilterParams<NarrowMembersByName<Members, In>>

    Equality filter conditions over the searched members' @SearchFilterable attributes.

    in?: In

    Narrows the search to a single member entity of the index by name.

    topK?: number

    The number of most similar results to return. Defaults to 10; DynamoDB supports at most 100.