mongoc_client_encryption_encrypt_string_substring_opts_set_str_max_length

Synopsis

void
mongoc_client_encryption_encrypt_string_substring_opts_set_str_max_length(
   mongoc_client_encryption_encrypt_string_substring_opts_t *opts,
   int32_t str_max_length);

Changed in version 2.4.0: Renamed from the now-deprecated text API.

Sets the maximum string length for substring string search encryption options.

Parameters

The "substringPreview" query type is in preview and should be used for experimental workloads only. This feature is unstable and its security is not guaranteed until released as Generally Available (GA). The GA version of this feature may not be backwards compatible with the preview version.

See also:

mongoc_client_encryption_encrypt_string_substring_opts_new() <>
mongoc_client_encryption_encrypt_string_opts_set_substring() <>

Author

MongoDB, Inc

Info

Aug 05, 2026 2.4.0 libmongoc