Packages

o

org.mongodb.scala.model.search

VectorSearchOptions

object VectorSearchOptions

Represents optional fields of the $vectorSearch pipeline stage of an aggregation pipeline.

Since

4.11

Note

Requires MongoDB 6.0.11, or greater

See also

$vectorSearch

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VectorSearchOptions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def approximateVectorSearchOptions(numCandidates: Long): ApproximateVectorSearchOptions

    Returns ApproximateVectorSearchOptions that represents server defaults.

    Returns ApproximateVectorSearchOptions that represents server defaults.

    returns

    ApproximateVectorSearchOptions that represents server defaults.

  2. def exactVectorSearchOptions(): ExactVectorSearchOptions

    Returns ExactVectorSearchOptions that represents server defaults with the exact option set to true.

    Returns ExactVectorSearchOptions that represents server defaults with the exact option set to true.

    returns

    ExactVectorSearchOptions that represents server defaults.

    Since

    5.2