org.springframework.data.mongodb.core.query

Class TextCriteria

    • Method Detail

      • forDefaultLanguage

        public static TextCriteria forDefaultLanguage()
        Returns a new TextCriteria for the default language.
        Returns:
      • forLanguage

        public static TextCriteria forLanguage(String language)
        For a full list of supported languages see the mongodb reference manual for Text Search Languages.
        Parameters:
        language -
        Returns:
      • matchingAny

        public TextCriteria matchingAny(String... words)
        Configures the TextCriteria to match any of the given words.
        Parameters:
        words - the words to match.
        Returns:
      • matching

        public TextCriteria matching(Term term)
        Adds given Term to criteria.
        Parameters:
        term - must not be null.
      • notMatchingAny

        public TextCriteria notMatchingAny(String... words)
        Parameters:
        words -
        Returns:
      • notMatchingPhrase

        public TextCriteria notMatchingPhrase(String phrase)
        Given value will treated as a single phrase.
        Parameters:
        phrase -
        Returns:
      • matchingPhrase

        public TextCriteria matchingPhrase(String phrase)
        Given value will treated as a single phrase.
        Parameters:
        phrase -
        Returns:
      • caseSensitive

        public TextCriteria caseSensitive(boolean caseSensitive)
        Optionally enable or disable case sensitive search.
        Parameters:
        caseSensitive - boolean flag to enable/disable.
        Returns:
        never null.
        Since:
        1.10
      • diacriticSensitive

        public TextCriteria diacriticSensitive(boolean diacriticSensitive)
        Optionally enable or disable diacritic sensitive search against version 3 text indexes.
        Parameters:
        diacriticSensitive - boolean flag to enable/disable.
        Returns:
        never null.
        Since:
        1.10