MONGOC_CLIENT...X_QUERY_LENGTH(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

✨ 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 β€” a mongoc_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


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