Scroll to navigation

MONGOC_CLIENT_ENCRYPTION_ENCRYPT_TEXT_SUBSTRING_OPTS_SET_STR_MAX_QUERY_LENGTH(3) libmongoc MONGOC_CLIENT_ENCRYPTION_ENCRYPT_TEXT_SUBSTRING_OPTS_SET_STR_MAX_QUERY_LENGTH(3)

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);


Added in version 2.2.0.

Sets the maximum query length for substring text search encryption options.

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 released as Generally Available (GA). The GA version of these features may not be backwards compatible with the preview version.

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.

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.

December 11, 2025 2.2.1