MONGOC_CLIENT...N_QUERY_LENGTH(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

✨ MONGOC_CLIENT_ENCRYPTION_ENCRYPT_TEXT_SUBSTRING_OPTS_SET_STR_MIN_QUERY_LENGTH ✨

okay bestie, buckle up πŸ’– this one lives in libmongoc and the name is lowkey a whole paragraph, but we move.


🌸 SYNOPSIS 🌸

void
mongoc_client_encryption_encrypt_text_substring_opts_set_str_min_query_length(
   mongoc_client_encryption_encrypt_text_substring_opts_t *opts,
   int32_t str_min_query_length);

Added in version 2.2.0. πŸŽ€


πŸ’œ DESCRIPTION πŸ’œ

So basically this lil function sets the minimum query length for substring text search encryption options. That's it. That's the whole job. It's giving "small but mighty" ✨

🚨 BIG WARNING, no cap: 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 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 ship this to prod and then act surprised, bestie 😭

🫢 PARAMETERS 🫢

  • opts β€” a mongoc_client_encryption_encrypt_text_substring_opts_t. the main character of the struct world πŸ’…
  • str_min_query_length β€” the minimum query length for substring search. Must be greater than zero. like literally zero is not it, negative is even less it πŸ™ˆ

πŸ‘€ SEE ALSO πŸ‘€

  • mongoc_client_encryption_encrypt_text_substring_opts_new() πŸ¦‹
  • mongoc_client_encryption_encrypt_text_opts_set_substring() 🌈

iykyk, go read those next, they're the sibling functions fr fr.


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc πŸ’–

2009-present, MongoDB, Inc.


and that's the whole page, bestie!! πŸŽ€βœ¨ this lil legend shipped in libmongoc 2.2.2, dated Feb 13, 2026 β€” periodt, go set that min query length πŸ’…πŸ«Ά

πŸ“¦ where this page comes from