Interface VectorSearchOperation.VectorContributor

Enclosing class:
VectorSearchOperation

public static interface VectorSearchOperation.VectorContributor
Fluent API to configure a vector on the VectorSearchOperation builder.
  • Method Details

    • vector

      @Contract("_ -> this") default VectorSearchOperation.LimitContributor vector(float... vector)
      Array of float numbers that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.
      Parameters:
      vector - the query vector.
      Returns:
    • vector

      @Contract("_ -> this") default VectorSearchOperation.LimitContributor vector(byte[] vector)
      Array of byte numbers that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.
      Parameters:
      vector - the query vector.
      Returns:
    • vector

      @Contract("_ -> this") default VectorSearchOperation.LimitContributor vector(double... vector)
      Array of double numbers that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.
      Parameters:
      vector - the query vector.
      Returns:
    • vector

      @Contract("_ -> this") default VectorSearchOperation.LimitContributor vector(List<? extends Number> vector)
      Array of numbers that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.
      Parameters:
      vector - the query vector.
      Returns:
    • vector

      @Contract("_ -> this") default VectorSearchOperation.LimitContributor vector(org.bson.BinaryVector vector)
      Binary vector (BSON BinData vector subtype float32, or BSON BinData vector subtype int1 or int8 type) that represent the query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.
      Parameters:
      vector - the query vector.
      Returns:
    • vector

      The query vector. The number type must match the indexed field value type. Otherwise, Atlas Vector Search doesn't return any results or errors.
      Parameters:
      vector - the query vector.
      Returns: