|
Couchbase C++ SDK 1.4.0 (rev. 59aa900)
|
#include <couchbase/vector_query.hxx>
Public Member Functions | |
| vector_query (std::string vector_field_name, std::vector< double > vector_query) | |
| Creates a vector query. | |
| vector_query (std::string vector_field_name, std::string base64_vector_query) | |
| Creates a vector query. | |
| auto | num_candidates (std::uint32_t num_candidates) -> vector_query & |
| The number of results that will be returned from this vector query. | |
| auto | boost (double boost) -> vector_query & |
| The boost parameter is used to increase the relative weight of a clause (with a boost greater than 1) or decrease the relative weight (with a boost between 0 and 1). | |
| template<typename SearchQuery> | |
| auto | prefilter (SearchQuery prefilter) -> vector_query & |
| Sets a prefilter, which allows defining a subset of the vector index, over which the vector search will be executed. | |
| auto | encode () const -> encoded_search_query |
|
inline |
Creates a vector query.
| vector_field_name | the document field that contains the vector |
| vector_query | the vector query to run. Cannot be empty. |
|
inline |
Creates a vector query.
| vector_field_name | the document field that contains the vector |
| base64_vector_query | a base64-encoded sequence of little-endian IEEE 754 floats |
|
inline |
The boost parameter is used to increase the relative weight of a clause (with a boost greater than 1) or decrease the relative weight (with a boost between 0 and 1).
| boost | boost value |
|
nodiscard |
|
inline |
The number of results that will be returned from this vector query.
Defaults to 3.
| num_candidates | the number of results returned |
|
inline |
Sets a prefilter, which allows defining a subset of the vector index, over which the vector search will be executed.
| prefilter | the prefilter search query |