Class TextSearchFilter
- java.lang.Object
-
- dev.morphia.query.experimental.filters.Filter
-
- dev.morphia.query.experimental.filters.TextSearchFilter
-
public class TextSearchFilter extends Filter
Defines a text search filter- Since:
- 2.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TextSearchFilter(String searchText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextSearchFilter
caseSensitive(Boolean caseSensitive)
Sets the search as case sensitive or notTextSearchFilter
diacriticSensitive(Boolean diacriticSensitive)
Sets the search as diacritic sensitive or notvoid
encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext context)
TextSearchFilter
language(String language)
Sets the language to use-
Methods inherited from class dev.morphia.query.experimental.filters.Filter
entityType, getField, getName, getValue, getValue, isNot, isValidating, not, path, toString, writeNamedValue, writeUnnamedValue
-
-
-
-
Constructor Detail
-
TextSearchFilter
protected TextSearchFilter(String searchText)
-
-
Method Detail
-
caseSensitive
public TextSearchFilter caseSensitive(Boolean caseSensitive)
Sets the search as case sensitive or not- Parameters:
caseSensitive
- the case sensitivity- Returns:
- this
-
diacriticSensitive
public TextSearchFilter diacriticSensitive(Boolean diacriticSensitive)
Sets the search as diacritic sensitive or not- Parameters:
diacriticSensitive
- the diacritic sensitivity- Returns:
- this
-
encode
public void encode(Mapper mapper, org.bson.BsonWriter writer, org.bson.codecs.EncoderContext context)
-
language
public TextSearchFilter language(String language)
Sets the language to use- Parameters:
language
- the language- Returns:
- this
-
-