org.springframework.data.mongodb.core.query

Class Term



  • public class Term
    extends Object
    A Term defines one or multiple words Term.Type.WORD or phrases Term.Type.PHRASE to be used in the context of full text search.
    Since:
    1.6
    Author:
    Christoph Strobl, Mark Paluch
    • Method Detail

      • negate

        public Term negate()
        Negates the term.
        Returns:
      • isNegated

        public boolean isNegated()
        Returns:
        return true if term is negated.
      • getType

        public Term.Type getType()
        Returns:
        type of term. Never null.
      • getFormatted

        public String getFormatted()
        Get formatted representation of term.
        Returns: