Couchbase C++ SDK 1.0.2 (rev. 51f4775)
|
A search_request is used to perform operations against the Full Text Search (FTS) Couchbase service. More...
#include <couchbase/search_request.hxx>
Public Member Functions | |
search_request (const couchbase::search_query &search_query) | |
Create a new search_request with a search_query. | |
search_request (const couchbase::vector_search &vector_search) | |
Create a new search_request with a vector_search. | |
auto | search_query (const couchbase::search_query &search_query) -> search_request & |
Used to run a search_query together with an existing vector_search. | |
auto | vector_search (const couchbase::vector_search &vector_search) -> search_request & |
Used to run a vector_query together with an existing search_query. | |
std::optional< encoded_search_query > | search_query () const |
std::optional< encoded_search_query > | vector_search () const |
std::optional< vector_search_options::built > | vector_options () |
A search_request is used to perform operations against the Full Text Search (FTS) Couchbase service.
It can be used to send an FTS search_query, and/or a vector_search
|
explicit |
Create a new search_request with a search_query.
search_query | the query to run |
|
explicit |
Create a new search_request with a vector_search.
vector_search | the vector_search to run |
|
nodiscard |
auto search_query | ( | const couchbase::search_query & | search_query | ) | -> search_request & |
Used to run a search_query together with an existing vector_search.
Note that a maximum of one SearchQuery and one VectorSearch can be provided.
search_query | the search_query to run with an existing vector_search. |
|
nodiscard |
|
nodiscard |
auto vector_search | ( | const couchbase::vector_search & | vector_search | ) | -> search_request & |
Used to run a vector_query together with an existing search_query.
Note that a maximum of one SearchQuery and one VectorSearch can be provided.
vector_search | the vector_search to be run with an existing search_query. |