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
Fields -
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
-
-
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
-