Class VectorQuery

java.lang.Object
com.couchbase.client.java.search.vector.VectorQuery

public class VectorQuery extends Object
  • Method Details Link icon

    • create Link icon

      @SinceCouchbase("7.6") public static VectorQuery create(String vectorField, float[] vector)
      Parameters:
      vectorField - the document field that contains the vector.
      vector - the vector to search for.
    • create Link icon

      @SinceCouchbase("7.6.2") public static VectorQuery create(String vectorField, String base64EncodedVector)
      Parameters:
      vectorField - the document field that contains the vector.
      base64EncodedVector - the vector to search for, as a Base64-encoded sequence of little-endian IEEE 754 floats.
    • numCandidates Link icon

      public VectorQuery numCandidates(int numCandidates)
      This is the number of results that will be returned from this vector query.
      Returns:
      this, for chaining.
    • boost Link icon

      public VectorQuery boost(double boost)
      Can be used to control how much weight to give the results of this query vs other queries.

      See the FTS documentation for details.

      Returns:
      this, for chaining.
    • toCore Link icon

      @Internal public CoreVectorQuery toCore()