Couchbase C Client
2.10.0
Asynchronous C Client for Couchbase
|
Search for strings in documents and more.
Functions | |
lcb_error_t | lcb_fts_query (lcb_t instance, const void *cookie, const lcb_CMDFTS *cmd) |
More... | |
void | lcb_fts_cancel (lcb_t, lcb_FTSHANDLE) |
More... | |
Typedefs | |
typedef void(* | lcb_FTSCALLBACK) (lcb_t, int, const lcb_RESPFTS *) |
typedef struct lcb_FTSREQ * | lcb_FTSHANDLE |
Pointer for request instance. | |
lcb_error_t lcb_fts_query | ( | lcb_t | instance, |
const void * | cookie, | ||
const lcb_CMDFTS * | cmd | ||
) |
instance | the instance |
cookie | opaque user cookie to be set in the response object |
cmd | command containing the query and callback |
void lcb_fts_cancel | ( | lcb_t | , |
lcb_FTSHANDLE | |||
) |
struct lcb_RESPFTS |
Response structure for full-text searches.
Data Fields | ||
---|---|---|
lcb_U16 | rflags | Flags for response structure. |
const char * | row |
A query hit, or response metadta (if rflags contains LCB_RESP_F_FINAL). The format of the row will be JSON, and should be decoded by a JSON decoded in your application. |
size_t | nrow | Length of row. |
const lcb_RESPHTTP * | htresp | Original HTTP response obejct. |
struct lcb_CMDFTS |
Search Command.
Data Fields | ||
---|---|---|
lcb_U32 | cmdflags |
Modifiers for command. Currently none are defined |
const char * | query | Encoded JSON query. |
size_t | nquery | Length of JSON query. |
lcb_FTSCALLBACK | callback |
Callback to be invoked. This must be supplied |
lcb_FTSHANDLE * | handle |
Optional pointer to store the handle. The handle may then be used for query cancellation via lcb_fts_cancel() |