Package com.mongodb.client.model
Class TextSearchOptions
- java.lang.Object
-
- com.mongodb.client.model.TextSearchOptions
-
public final class TextSearchOptions extends Object
Text search options for theFilters.text(String, TextSearchOptions)
helper- Since:
- 3.2
- MongoDB documentation
- $text
-
-
Constructor Summary
Constructors Constructor Description TextSearchOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextSearchOptions
caseSensitive(Boolean caseSensitive)
Set the case-sensitive flag for the text searchTextSearchOptions
diacriticSensitive(Boolean diacriticSensitive)
Set the diacritic-sensitive flag for the text searchBoolean
getCaseSensitive()
Returns the case-sensitive flag to use with the text searchBoolean
getDiacriticSensitive()
Returns the diacritic-sensitive flag to use with the text searchString
getLanguage()
Returns the language to be used with the text searchTextSearchOptions
language(String language)
Set the language for the text searchString
toString()
-
-
-
Method Detail
-
getLanguage
@Nullable public String 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
public TextSearchOptions language(@Nullable String language)
Set the language for the text search- Parameters:
language
- the language to use for the text search- Returns:
- this
-
getCaseSensitive
@Nullable public Boolean 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
public TextSearchOptions caseSensitive(@Nullable Boolean 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
@Nullable public Boolean 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
public TextSearchOptions diacriticSensitive(@Nullable Boolean 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
-
-