MONGOC_CLIENT...X_QUERY_LENGTH(3)
β¨ MONGOC_CLIENT...X_QUERY_LENGTH β¨
okay bestie, this is a libmongoc manual page, and it's lowkey about setting one little number that controls how much text gets peeked at when you're doing encrypted substring searches ππ
πΈ SYNOPSIS πΈ
void
mongoc_client_encryption_encrypt_text_substring_opts_set_str_max_query_length(
mongoc_client_encryption_encrypt_text_substring_opts_t *opts,
int32_t str_max_query_length);
π¦ DESCRIPTION π¦
Added in version 2.2.0. β¨
This one sets the maximum query length for substring text search encryption options. That's it, that's the whole job, and it does it slayfully π
β οΈ okay so listen β the "TextPreview" algorithm is in preview and should only be used for experimental workloads. These features are unstable and their security is not guaranteed until they're 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 build your whole personality on this yet fr fr π
π PARAMETERS π
optsβ amongoc_client_encryption_encrypt_text_substring_opts_tπ«Άstr_max_query_lengthβ the maximum query length for substring search. Must be greater than zero. Not zero, not negative, we don't do that here π
π SEE ALSO π
mongoc_client_encryption_encrypt_text_substring_opts_new()πmongoc_client_encryption_encrypt_text_opts_set_substring()β
π AUTHOR π
MongoDB, Inc
πΈ COPYRIGHT πΈ
2009-present, MongoDB, Inc.
and that's the whole page bestie, you ate that π this was libmongoc version 2.2.2, dated Feb 13, 2026 β go forth and encrypt your substrings responsibly π§β¨
π¦ 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