Constructor and Description |
---|
ContextualPredicate(String searchPhrase,
boolean fuzzy,
boolean caseSensitiveSearch,
Collection<String> textPaths) |
Modifier and Type | Method and Description |
---|---|
String |
getSearchPhrase() |
Collection<String> |
getTextPaths() |
boolean |
hasTextPaths() |
boolean |
isCaseSensitive() |
static boolean |
isContextual(String searchPhrase) |
boolean |
isFuzzy() |
boolean |
matches(org.osgi.service.event.Event properties) |
static String |
normalizePhrase(String inputPhrase,
boolean isFuzzy)
Normalizes a search phrase for a Lucene query
|
String |
toString() |
public ContextualPredicate(String searchPhrase, boolean fuzzy, boolean caseSensitiveSearch, Collection<String> textPaths)
public static boolean isContextual(String searchPhrase)
public static String normalizePhrase(String inputPhrase, boolean isFuzzy)
inputPhrase
- the input phraseisFuzzy
- true indicates the criteria is fuzzypublic boolean matches(org.osgi.service.event.Event properties)
public String getSearchPhrase()
public boolean isFuzzy()
public boolean isCaseSensitive()
public boolean hasTextPaths()
public Collection<String> getTextPaths()
This work is licensed under a Creative Commons Attribution 4.0 International License.