Package com.mongodb.client.model.vault
Class TextOptions
java.lang.Object
com.mongodb.client.model.vault.TextOptions
Deprecated.
Text options for a Queryable Encryption field that supports text queries.
Note: TextOptions is in Alpha and subject to backwards breaking changes.
- Since:
- 5.6
- MongoDB documentation
- queryable encryption
- Since server release
- 8.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseSensitive(boolean caseSensitive) Deprecated.Set case sensitivitydiacriticSensitive(boolean diacriticSensitive) Deprecated.Set diacritic sensitivitybooleanDeprecated.booleanDeprecated.Deprecated.Deprecated.Deprecated.prefixOptions(BsonDocument prefixOptions) Deprecated.Set the prefix options.substringOptions(BsonDocument substringOptions) Deprecated.Set the substring options.suffixOptions(BsonDocument suffixOptions) Deprecated.Set the suffix options.toString()Deprecated.
-
Constructor Details
-
TextOptions
public TextOptions()Deprecated.Construct a new instance
-
-
Method Details
-
getCaseSensitive
public boolean getCaseSensitive()Deprecated.- Returns:
- true if text indexes for this field are case sensitive.
-
caseSensitive
Deprecated.Set case sensitivity- Parameters:
caseSensitive- true if text indexes are case sensitive- Returns:
- this
-
getDiacriticSensitive
public boolean getDiacriticSensitive()Deprecated.- Returns:
- true if text indexes are diacritic sensitive
-
diacriticSensitive
Deprecated.Set diacritic sensitivity- Parameters:
diacriticSensitive- true if text indexes are diacritic sensitive- Returns:
- this
-
prefixOptions
Deprecated.Set the prefix options.Expected to be a
BsonDocumentin the format of:{ // strMinQueryLength is the minimum allowed query length. Querying with a shorter string will error. strMinQueryLength: BsonInt32, // strMaxQueryLength is the maximum allowed query length. Querying with a longer string will error. strMaxQueryLength: BsonInt32 }- Parameters:
prefixOptions- the prefix options or null- Returns:
- this
-
getPrefixOptions
Deprecated.- Returns:
- the prefix options document or null
- See Also:
-
suffixOptions
Deprecated.Set the suffix options.Expected to be a
BsonDocumentin the format of:{ // strMinQueryLength is the minimum allowed query length. Querying with a shorter string will error. strMinQueryLength: BsonInt32, // strMaxQueryLength is the maximum allowed query length. Querying with a longer string will error. strMaxQueryLength: BsonInt32 }- Parameters:
suffixOptions- the suffix options or null- Returns:
- this
-
getSuffixOptions
Deprecated.- Returns:
- the suffix options document or null
- See Also:
-
substringOptions
Deprecated.Set the substring options.Expected to be a
BsonDocumentin the format of:{ // strMaxLength is the maximum allowed length to insert. Inserting longer strings will error. strMaxLength: BsonInt32, // strMinQueryLength is the minimum allowed query length. Querying with a shorter string will error. strMinQueryLength: BsonInt32, // strMaxQueryLength is the maximum allowed query length. Querying with a longer string will error. strMaxQueryLength: BsonInt32 }- Parameters:
substringOptions- the substring options or null- Returns:
- this
-
getSubstringOptions
Deprecated.- Returns:
- the substring options document or null
- See Also:
-
toString
Deprecated.
-
StringOptionsinstead.