Couchbase C Client
3.3.14
Asynchronous C Client for Couchbase
|
Search for strings in documents and more
lcb_STATUS lcb_respsearch_handle | ( | const lcb_RESPSEARCH * | resp, |
lcb_SEARCH_HANDLE ** | handle ) |
Get search handle from search response.
Used to cancel a request. See lcb_cmdsearch_handle as well
resp | the search response |
handle | pointer to handle pointer |
lcb_STATUS lcb_cmdsearch_handle | ( | lcb_CMDSEARCH * | cmd, |
lcb_SEARCH_HANDLE ** | handle ) |
Obtain handle to search.
Used to cancel a query. See lcb_respsearch_handle as well
cmd | the command |
handle | pointer to handle pointer |
lcb_STATUS lcb_cmdsearch_on_behalf_of | ( | lcb_CMDSEARCH * | cmd, |
const char * | data, | ||
size_t | data_len ) |
lcb_STATUS lcb_search | ( | lcb_INSTANCE * | instance, |
void * | cookie, | ||
const lcb_CMDSEARCH * | cmd ) |
Issue a full-text query.
The callback (lcb_SEARCH_CALLBACK) will be invoked for each hit. It will then be invoked one last time with the result metadata (including any facets) and the lcb_resp_is_final will return true.
instance | the instance |
cookie | opaque user cookie to be set in the response object |
cmd | command containing the query and callback |
lcb_STATUS lcb_search_cancel | ( | lcb_INSTANCE * | instance, |
lcb_SEARCH_HANDLE * | handle ) |
Cancel a full-text query in progress.
The handle is usually obtained via the lcb_cmdsearch_handle call
instance | the instance |
handle | the handle to the search. See lcb_cmdsearch_handle. |