public class Term extends Object
Term defines one or multiple words Term.Type.WORD or phrases Term.Type.PHRASE to be used in the
context of full text search.| Modifier and Type | Class and Description |
|---|---|
static class |
Term.Type |
| Constructor and Description |
|---|
Term(String raw)
Creates a new
Term of Term.Type.WORD. |
Term(String raw,
Term.Type type)
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatted()
Get formatted representation of term.
|
Term.Type |
getType() |
boolean |
isNegated() |
Term |
negate()
Negates the term.
|
protected String |
negateRaw(String raw) |
protected String |
quotePhrase(String raw) |
String |
toString() |
public Term(String raw)
Term of Term.Type.WORD.raw - public Term(String raw, @Nullable Term.Type type)
raw - type - defaulted to Term.Type.WORD if null.public Term negate()
public boolean isNegated()
public Term.Type getType()
public String getFormatted()
Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.