Package com.mongodb.client.model
Class TextSearchOptions
java.lang.Object
com.mongodb.client.model.TextSearchOptions
Text search options for the
Filters.text(String, TextSearchOptions) helper- Since:
- 3.2
- MongoDB documentation
- $text
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaseSensitive(Boolean caseSensitive) Set the case-sensitive flag for the text searchdiacriticSensitive(Boolean diacriticSensitive) Set the diacritic-sensitive flag for the text searchbooleanReturns the case-sensitive flag to use with the text searchReturns the diacritic-sensitive flag to use with the text searchReturns the language to be used with the text searchinthashCode()Set the language for the text searchtoString()
-
Constructor Details
-
TextSearchOptions
public TextSearchOptions()
-
-
Method Details
-
getLanguage
Returns the language to be used with the text search- Returns:
- the language to use for the text search if set or null
-
language
Set the language for the text search- Parameters:
language- the language to use for the text search- Returns:
- this
-
getCaseSensitive
Returns the case-sensitive flag to use with the text search- Returns:
- the case-sensitive flag if set or null
- Since server release
- 3.2
-
caseSensitive
Set the case-sensitive flag for the text search- Parameters:
caseSensitive- the case-sensitive flag for the text search- Returns:
- this
- Since server release
- 3.2
-
getDiacriticSensitive
Returns the diacritic-sensitive flag to use with the text search- Returns:
- the diacritic-sensitive flag if set or null
- Since server release
- 3.2
-
diacriticSensitive
Set the diacritic-sensitive flag for the text search- Parameters:
diacriticSensitive- the diacritic-sensitive flag for the text search- Returns:
- this
- Since server release
- 3.2
-
equals
-
hashCode
public int hashCode() -
toString
-