Class VectorQuery

Represents a vector query.

Constructors

  • Parameters

    • fieldName: string
    • vector: string | number[]

    Returns VectorQuery

Methods

  • Adds boost option to vector query.

    Parameters

    • boost: number

      A floating point value.

    Returns VectorQuery

  • Adds numCandidates option to vector query. Value must be >= 1.

    Parameters

    • numCandidates: number

      An integer value.

    Returns VectorQuery

  • Creates a vector query.

    Parameters

    • fieldName: string

      The name of the field in the JSON document that holds the vector.

    • vector: string | number[]

      List of floating point values that represent the vector.

    Returns VectorQuery