java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.model.search.TextConditionBuilder

public class TextConditionBuilder extends Object
Methods for building up complex conditions that search text (strings).
  • 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 matched
      xtdbConnector - connectivity to the repository
      typesToInclude - defining which type definitions should be included in the search (to limit the properties)
      namespace - by which to qualify the properties
      luceneEnabled - 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 matched
      xtdbConnector - connectivity to the repository
      typesToInclude - defining which type definitions should be included in the search (to limit the properties)
      namespace - by which to qualify the properties
      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