Package com.mongodb.client.model
Class TextSearchOptions
- java.lang.Object
-
- com.mongodb.client.model.TextSearchOptions
-
public final class TextSearchOptions extends java.lang.ObjectText 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 TextSearchOptionscaseSensitive(java.lang.Boolean caseSensitive)Set the case-sensitive flag for the text searchTextSearchOptionsdiacriticSensitive(java.lang.Boolean diacriticSensitive)Set the diacritic-sensitive flag for the text searchbooleanequals(java.lang.Object o)java.lang.BooleangetCaseSensitive()Returns the case-sensitive flag to use with the text searchjava.lang.BooleangetDiacriticSensitive()Returns the diacritic-sensitive flag to use with the text searchjava.lang.StringgetLanguage()Returns the language to be used with the text searchinthashCode()TextSearchOptionslanguage(java.lang.String language)Set the language for the text searchjava.lang.StringtoString()
-
-
-
Method Detail
-
getLanguage
@Nullable public java.lang.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 java.lang.String language)
Set the language for the text search- Parameters:
language- the language to use for the text search- Returns:
- this
-
getCaseSensitive
@Nullable public java.lang.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 java.lang.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 java.lang.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 java.lang.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
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-