Package com.mongodb.client.model
Class TextSearchOptions
-
- com.mongodb.client.model.TextSearchOptions
-
public final class TextSearchOptions extends
Text search options for theFilters.text(String, TextSearchOptions)
helper- Since:
- 3.2
- MongoDB documentation
-
-
Constructor Summary
Constructors Constructor Description TextSearchOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextSearchOptions
caseSensitive)
Set the case-sensitive flag for the text searchTextSearchOptions
diacriticSensitive)
Set the diacritic-sensitive flag for the text searchboolean
o)
getCaseSensitive()
Returns the case-sensitive flag to use with the text searchgetDiacriticSensitive()
Returns the diacritic-sensitive flag to use with the text searchgetLanguage()
Returns the language to be used with the text searchint
hashCode()
TextSearchOptions
language)
Set the language for the text searchtoString()
-
-
-
Method Detail
-
getLanguage
@Nullable public 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 language)
Set the language for the text search- Parameters:
language
- the language to use for the text search- Returns:
- this
-
getCaseSensitive
@Nullable public getCaseSensitive()
Returns the case-sensitive flag to use with the text search- Returns:
- the case-sensitive flag if set or null
- Since server release
-
caseSensitive
public TextSearchOptions caseSensitive(@Nullable 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
-
getDiacriticSensitive
@Nullable public getDiacriticSensitive()
Returns the diacritic-sensitive flag to use with the text search- Returns:
- the diacritic-sensitive flag if set or null
- Since server release
-
diacriticSensitive
public TextSearchOptions diacriticSensitive(@Nullable 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
-
equals
public boolean equals( o)
- Overrides:
in class
-
hashCode
public int hashCode()
- Overrides:
in class
-
toString
public toString()
- Overrides:
in class
-
-