Scroll to navigation

MONGOC_CLIENT_ENCRYPTION_ENCRYPT_STRING_PREFIX_OPTS_SET_STR_MAX_QUERY_LENGTH(3) libmongoc MONGOC_CLIENT_ENCRYPTION_ENCRYPT_STRING_PREFIX_OPTS_SET_STR_MAX_QUERY_LENGTH(3)

SYNOPSIS

void
mongoc_client_encryption_encrypt_string_prefix_opts_set_str_max_query_length(

mongoc_client_encryption_encrypt_string_prefix_opts_t *opts,
int32_t str_max_query_length);


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

Sets the maximum query length for prefix string search encryption options.

PARAMETERS

  • opts: A mongoc_client_encryption_encrypt_string_prefix_opts_t <>.
  • str_max_query_length: The maximum query length for prefix search. Must be greater than zero.

See also:

mongoc_client_encryption_encrypt_string_prefix_opts_new() <>
mongoc_client_encryption_encrypt_string_opts_set_prefix() <>



Author

MongoDB, Inc

Copyright

2009-present, MongoDB, Inc.

August 21, 2026 2.5.0