Class TextSearchFilter


  • public class TextSearchFilter
    extends Filter
    Defines a text search filter
    Since:
    2.0
    • 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)
        Overrides:
        encode in class Filter
        Parameters:
        mapper - the mapper
        writer - the writer
        context - the context
      • language

        public TextSearchFilter language​(String language)
        Sets the language to use
        Parameters:
        language - the language
        Returns:
        this