public enum SearchPredicate extends Enum<SearchPredicate> implements DsePredicate
Search
static methods.Enum Constant and Description |
---|
fuzzy
Whether the text is within a given edit distance from the given term (case sensitive).
|
phrase
Whether tokenized text contains a given phrase, optionally within a given proximity (case
insensitive).
|
prefix
Whether the text starts with a given prefix (case sensitive).
|
regex
Whether the text matches a regular expression (case sensitive).
|
token
Whether the text contains a given term as a token in the text (case insensitive).
|
tokenFuzzy
Whether some token in the text is within a given edit distance from the given term (case
insensitive).
|
tokenPrefix
Whether the text contains a token that starts with a given term (case insensitive).
|
tokenRegex
Whether the text contains a token that matches a regular expression (case insensitive).
|
Modifier and Type | Method and Description |
---|---|
static SearchPredicate |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchPredicate[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isValidCondition, preEvaluate
and, negate, or, test
public static final SearchPredicate token
public static final SearchPredicate tokenPrefix
public static final SearchPredicate tokenRegex
public static final SearchPredicate tokenFuzzy
public static final SearchPredicate prefix
public static final SearchPredicate regex
public static final SearchPredicate fuzzy
public static final SearchPredicate phrase
public static SearchPredicate[] values()
for (SearchPredicate c : SearchPredicate.values()) System.out.println(c);
public static SearchPredicate valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2012–2018. All rights reserved.