java.lang.Object
org.springframework.data.mongodb.core.query.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
  • Constructor Details

  • Method Details

    • 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:
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • quotePhrase

      protected String quotePhrase(String raw)
    • negateRaw

      protected String negateRaw(String raw)