MONGOC_CLIENT_...X_QUERY_LENGTH(3)
π MONGOC_CLIENT_...X_QUERY_LENGTH(3) π
okay bestie, so this page lives in the libmongoc manual, section 3 (yes the title is lowkey truncated, the real function name is a whole paragraph long, we move π
).
β¨ SYNOPSIS β¨
void
mongoc_client_encryption_encrypt_text_prefix_opts_set_str_max_query_length(
mongoc_client_encryption_encrypt_text_prefix_opts_t *opts,
int32_t str_max_query_length);
Added in version 2.2.0.
This one sets the maximum query length for prefix text search encryption options. Short king behavior: it just sets a number, no drama.
π¨ okay this is the important part, do NOT skip it: the "TextPreview" algorithm is in preview and should be used for experimental workloads only. These features are unstable and their security is not guaranteed until released as Generally Available (GA). And the GA version of these features may not be backwards compatible with the preview version. so likeβ¦ do not ship this to prod, i am begging π
π PARAMETERS π
optsβ amongoc_client_encryption_encrypt_text_prefix_opts_t. the lil options struct you're decorating β¨str_max_query_lengthβ the maximum query length for prefix search. must be greater than zero fr fr, zero and negatives are not the vibe.
π¦ See also π¦
mongoc_client_encryption_encrypt_text_prefix_opts_new()mongoc_client_encryption_encrypt_text_opts_set_prefix()
π Author π
MongoDB, Inc
π Copyright π
2009-present, MongoDB, Inc.
and that's the whole page, bestie π«Ά this was manual libmongoc, version 2.2.2, dated Feb 13, 2025 β slay, no cap, periodt π
β¨
π¦ where this page comes from
- ubuntu resolute: libmongoc-doc 2.2.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms