java.lang.Object
org.springframework.data.mongodb.core.query.Term
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
-
Term
Creates a newTermofTerm.Type.WORD.- Parameters:
raw-
-
Term
- Parameters:
raw-type- defaulted toTerm.Type.WORDif null.
-
-
Method Details
-
negate
Negates the term.- Returns:
-
isNegated
public boolean isNegated()- Returns:
- return true if term is negated.
-
getType
- Returns:
- type of term. Never null.
-
getFormatted
Get formatted representation of term.- Returns:
-
equals
-
hashCode
public int hashCode() -
toString
-
quotePhrase
-
negateRaw
-