35#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
42class search_index_manager_impl;
68 const -> std::future<std::pair<error, management::search::index>>;
83 -> std::future<std::pair<
error, std::vector<management::search::index>>>;
101 -> std::future<error>;
119 -> std::future<error>;
136 std::string index_name,
138 -> std::future<std::pair<error, std::uint64_t>>;
156 -> std::future<error>;
174 -> std::future<error>;
192 -> std::future<error>;
209 std::string index_name,
228 -> std::future<error>;
246 -> std::future<error>;
259 template<
typename Document>
268 std::string{
reinterpret_cast<const char*
>(encoded.data.data()), encoded.data.size() };
269 return analyze_document(std::move(index_name), decoded, options, std::move(handler));
272 template<
typename Document>
276 -> std::future<std::pair<
error, std::vector<std::string>>>
281 std::string{
reinterpret_cast<const char*
>(encoded.data.data()), encoded.data.size() };
298 std::string document,
303 std::string document,
305 -> std::future<std::pair<error, std::vector<std::string>>>;
311 std::string bucket_name,
312 std::string scope_name);
314 std::shared_ptr<search_index_manager_impl> impl_;
static auto encode(Document document) -> encoded_value
Definition json_transcoder.hxx:33
Definition scope_search_index_manager.hxx:51
auto analyze_document(std::string index_name, std::string document, const analyze_document_options &options) const -> std::future< std::pair< error, std::vector< std::string > > >
auto resume_ingest(std::string index_name, const resume_ingest_search_index_options &options={}) const -> std::future< error >
auto get_index(std::string index_name, const get_search_index_options &options={}) const -> std::future< std::pair< error, management::search::index > >
auto disallow_querying(std::string index_name, const disallow_querying_search_index_options &options={}) const -> std::future< error >
void allow_querying(std::string index_name, const allow_querying_search_index_options &options, allow_querying_search_index_handler &&handler) const
Allows querying against a scope-level index.
auto pause_ingest(std::string index_name, const pause_ingest_search_index_options &options={}) const -> std::future< error >
auto get_all_indexes(const get_all_search_indexes_options &options={}) const -> std::future< std::pair< error, std::vector< management::search::index > > >
void get_indexed_documents_count(std::string index_name, const get_indexed_search_index_options &options, get_indexed_search_index_handler &&handler) const
Retrieves the number of documents that have been indexed for a scope-level index.
auto get_indexed_documents_count(std::string index_name, const get_indexed_search_index_options &options={}) const -> std::future< std::pair< error, std::uint64_t > >
void get_all_indexes(const get_all_search_indexes_options &options, get_all_search_indexes_handler &&handler) const
Fetches all scope-level indexes from the server.
auto upsert_index(const management::search::index &search_index, const upsert_search_index_options &options={}) const -> std::future< error >
void get_index(std::string index_name, const get_search_index_options &options, get_search_index_handler &&handler) const
Fetches a scope-level index from the server if it exists.
void upsert_index(const management::search::index &search_index, const upsert_search_index_options &options, upsert_search_index_handler &&handler) const
Creates, or updates a scope-level index.
auto allow_querying(std::string index_name, const allow_querying_search_index_options &options={}) const -> std::future< error >
void disallow_querying(std::string index_name, const disallow_querying_search_index_options &options, disallow_querying_search_index_handler &&handler) const
Disallows querying against a scope-level index.
auto drop_index(std::string index_name, const drop_search_index_options &options={}) const -> std::future< error >
void analyze_document(std::string index_name, std::string document, const analyze_document_options &options, analyze_document_handler &&handler) const
Allows to see how a document is analyzed against a specific scope-level index.
auto analyze_document(std::string index_name, Document document, const analyze_document_options &options={}) const -> std::future< std::pair< error, std::vector< std::string > > >
Definition scope_search_index_manager.hxx:273
void drop_index(std::string index_name, const drop_search_index_options &options, drop_search_index_handler &&handler) const
Drops a scope-level index.
void freeze_plan(std::string index_name, const freeze_plan_search_index_options &options, freeze_plan_search_index_handler &&handler) const
Freeze the assignment of scope-level index partitions to nodes.
void analyze_document(std::string index_name, Document document, const analyze_document_options &options, analyze_document_handler &&handler) const
Allows to see how a document is analyzed against a specific scope-level index.
Definition scope_search_index_manager.hxx:260
auto freeze_plan(std::string index_name, const freeze_plan_search_index_options &options={}) const -> std::future< error >
auto unfreeze_plan(std::string index_name, const unfreeze_plan_search_index_options &options={}) const -> std::future< error >
void unfreeze_plan(std::string index_name, const unfreeze_plan_search_index_options &options, unfreeze_plan_search_index_handler &&handler) const
Unfreeze the assignment of scope-level index partitions to nodes.
void pause_ingest(std::string index_name, const pause_ingest_search_index_options &options, pause_ingest_search_index_handler &&handler) const
Pauses updates and maintenance for a scope-level index.
void resume_ingest(std::string index_name, const resume_ingest_search_index_options &options, resume_ingest_search_index_handler &&handler) const
Resumes updates and maintenance for a scope-level index.
The scope identifies a group of collections and allows high application density as a result.
Definition scope.hxx:47
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
std::function< void(error, management::search::index)> get_search_index_handler
Definition get_search_index_options.hxx:43
std::function< void(error, std::uint64_t)> get_indexed_search_index_handler
Definition get_indexed_search_index_options.hxx:42
std::function< void(error)> unfreeze_plan_search_index_handler
Definition unfreeze_plan_search_index_options.hxx:43
std::function< void(error)> allow_querying_search_index_handler
Definition allow_querying_search_index_options.hxx:43
std::function< void(error)> drop_search_index_handler
Definition drop_search_index_options.hxx:42
std::function< void(error, std::vector< std::string >)> analyze_document_handler
Definition analyze_document_options.hxx:43
std::function< void(error)> freeze_plan_search_index_handler
Definition freeze_plan_search_index_options.hxx:42
std::function< void(error)> resume_ingest_search_index_handler
Definition resume_ingest_search_index_options.hxx:43
std::function< void(error, std::vector< management::search::index >)> get_all_search_indexes_handler
Definition get_all_search_indexes_options.hxx:43
std::function< void(error)> upsert_search_index_handler
Definition upsert_search_index_options.hxx:40
std::function< void(error)> disallow_querying_search_index_handler
Definition disallow_querying_search_index_options.hxx:43
std::function< void(error)> pause_ingest_search_index_handler
Definition pause_ingest_search_index_options.hxx:43
Definition allow_querying_search_index_options.hxx:30
Definition analyze_document_options.hxx:30
Definition disallow_querying_search_index_options.hxx:30
Definition drop_search_index_options.hxx:29
Definition freeze_plan_search_index_options.hxx:29
Definition get_all_search_indexes_options.hxx:30
Definition get_indexed_search_index_options.hxx:29
Definition get_search_index_options.hxx:30
Definition search_index.hxx:27
Definition pause_ingest_search_index_options.hxx:30
Definition resume_ingest_search_index_options.hxx:30
Definition unfreeze_plan_search_index_options.hxx:30
Definition upsert_search_index_options.hxx:27