MONGOC_CLIENT...N_QUERY_LENGTH(3)
β¨ 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β amongoc_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 π
β COPYRIGHT β
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
- 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