32#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
75 [[nodiscard]] auto
name() const -> const std::
string&;
114 -> std::future<std::pair<error, query_result>>;
157 [[nodiscard]]
auto search(std::string index_name,
160 -> std::future<std::pair<error, search_result>>;
194 const -> std::future<std::pair<error, analytics_result>>;
211 std::shared_ptr<scope_impl> impl_;
Provides access to Couchbase bucket.
Definition bucket.hxx:45
The cluster is the main entry point when connecting to a Couchbase cluster.
Definition cluster.hxx:60
The collection provides access to all collection APIs.
Definition collection.hxx:70
Definition scope_search_index_manager.hxx:51
The scope identifies a group of collections and allows high application density as a result.
Definition scope.hxx:47
auto bucket_name() const -> const std::string &
Returns name of the bucket where the scope is defined.
static constexpr auto default_name
Constant for the name of the default scope in the bucket.
Definition scope.hxx:55
auto search(std::string index_name, search_request request, const search_options &options={}) const -> std::future< std::pair< error, search_result > >
Performs a request against the full text search services.
auto search_indexes() const -> scope_search_index_manager
Provides access to search index management services at the scope level.
auto analytics_query(std::string statement, const analytics_options &options={}) const -> std::future< std::pair< error, analytics_result > >
Performs a query against the analytics services.
void search(std::string index_name, search_request request, const search_options &options, search_handler &&handler) const
Performs a request against the full text search services.
auto name() const -> const std::string &
Returns name of the scope.
void analytics_query(std::string statement, const analytics_options &options, analytics_handler &&handler) const
Performs a query against the analytics services.
A search_request is used to perform operations against the Full Text Search (FTS) Couchbase service.
Definition search_request.hxx:46
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
@ query
The Query service (SQL++)
std::function< void(error, search_result)> search_handler
The signature for the handler of the cluster::search() and scope::search() operations.
Definition search_options.hxx:528
std::function< void(error, query_result)> query_handler
The signature for the handler of the cluster::query() and scope::query() operations.
Definition query_options.hxx:613
std::function< void(error, analytics_result)> analytics_handler
The signature for the handler of the cluster::analytics_query() and scope::analytics_query() operatio...
Definition analytics_options.hxx:401
Options for cluster::analytics_query() and scope::analytics_query().
Definition analytics_options.hxx:45
Options for cluster::query() and scope::query().
Definition query_options.hxx:46
Options for cluster::search() and scope::search().
Definition search_options.hxx:47