Class TextConditionBuilder
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.model.search.TextConditionBuilder
Methods for building up complex conditions that search text (strings).
-
Field Summary
Modifier and TypeFieldDescriptionstatic final clojure.lang.Symbol
protected static final clojure.lang.Symbol
static final clojure.lang.Symbol
protected static final clojure.lang.Symbol
protected static final clojure.lang.Symbol
protected static final clojure.lang.Symbol
protected static final clojure.lang.Symbol
protected static final clojure.lang.Symbol
static final clojure.lang.Symbol
protected static final clojure.lang.Symbol
protected static final clojure.lang.Symbol
-
Method Summary
Modifier and TypeMethodDescriptionstatic List<clojure.lang.IPersistentCollection>
buildWildcardLuceneCondition
(String regexCriteria, XTDBOMRSRepositoryConnector xtdbConnector, Set<String> typesToInclude, String namespace, boolean luceneRegexes) Adds conditions to the search to find any text field that matches the supplied criteria (leveraging a separate Lucene index).static List<clojure.lang.IPersistentCollection>
buildWildcardTextCondition
(String regexCriteria, XTDBOMRSRepositoryConnector xtdbConnector, Set<String> typesToInclude, String namespace, boolean luceneEnabled, boolean luceneRegexes) Add conditions to the search to find any text field that matches the supplied criteria (without a separate Lucene index).
-
Field Details
-
ELIDE
public static final clojure.lang.Symbol ELIDE -
VALUE
public static final clojure.lang.Symbol VALUE -
ATTRIBUTE
public static final clojure.lang.Symbol ATTRIBUTE -
WILDCARD_TEXT_SEARCH_CI
protected static final clojure.lang.Symbol WILDCARD_TEXT_SEARCH_CI -
WILDCARD_TEXT_SEARCH_CS
protected static final clojure.lang.Symbol WILDCARD_TEXT_SEARCH_CS -
TEXT_SEARCH_CI
protected static final clojure.lang.Symbol TEXT_SEARCH_CI -
TEXT_SEARCH_CS
protected static final clojure.lang.Symbol TEXT_SEARCH_CS -
STARTS_WITH
protected static final clojure.lang.Symbol STARTS_WITH -
CONTAINS
protected static final clojure.lang.Symbol CONTAINS -
ENDS_WITH
protected static final clojure.lang.Symbol ENDS_WITH -
STR_OPERATOR
protected static final clojure.lang.Symbol STR_OPERATOR
-
-
Method Details
-
buildWildcardTextCondition
public static List<clojure.lang.IPersistentCollection> buildWildcardTextCondition(String regexCriteria, XTDBOMRSRepositoryConnector xtdbConnector, Set<String> typesToInclude, String namespace, boolean luceneEnabled, boolean luceneRegexes) Add conditions to the search to find any text field that matches the supplied criteria (without a separate Lucene index).- Parameters:
regexCriteria
- defining what should be matchedxtdbConnector
- connectivity to the repositorytypesToInclude
- defining which type definitions should be included in the search (to limit the properties)namespace
- by which to qualify the propertiesluceneEnabled
- indicates whether Lucene search index is configured (true) or not (false)luceneRegexes
- indicates whether unquoted regexes should be treated as Lucene compatible (true) or not (false)- Returns:
List<IPersistentCollection>
of condition(s) for the text matching
-
buildWildcardLuceneCondition
public static List<clojure.lang.IPersistentCollection> buildWildcardLuceneCondition(String regexCriteria, XTDBOMRSRepositoryConnector xtdbConnector, Set<String> typesToInclude, String namespace, boolean luceneRegexes) Adds conditions to the search to find any text field that matches the supplied criteria (leveraging a separate Lucene index).- Parameters:
regexCriteria
- defining what should be matchedxtdbConnector
- connectivity to the repositorytypesToInclude
- defining which type definitions should be included in the search (to limit the properties)namespace
- by which to qualify the propertiesluceneRegexes
- indicates whether unquoted regexes should be treated as Lucene compatible (true) or not (false)- Returns:
List<IPersistentCollection>
of condition(s) for the text matching
-