code: @VisibleForTesting
      Pair<String, SearchQueryOperator> extractOperator(String value, SearchQueryOperator defaultOperator) {
          if (value.length() >= 3) {
              final String substring2 = value.substring(0, 2);
  
              switch (substring2) {
                  case ">=":
                      return Pair.of(value.substring(2).trim(), SearchQueryOperators.GREATER_EQUALS);
                  case "<=":
                      return Pair.of(value.substring(2).trim(), SearchQueryOperators.LESS_EQUALS);
                  case "=~":
                      return Pair.of(value.substring(2).trim(), SearchQueryOperators.REGEXP);
              }
          }
  
          if (value.length() >= 2) {
              final String substring1 = value.substring(0, 1);
              switch (substring1) {
                  case ">":
                      return Pair.of(value.substring(1).trim(), SearchQueryOperators.GREATER);
                  case "<":
                      return Pair.of(value.substring(1).trim(), SearchQueryOperators.LESS);
                  case "=":
                      return Pair.of(value.substring(1).trim(), SearchQueryOperators.EQUALS);
              }
          }
  
          return Pair.of(value, defaultOperator);
      }
docs: /* YOLO operator parser
  
  This tries to extract the operator by looking at the first or the first two characters of the value string to
  find a supported operator.
  If an operator has been found, it will be removed from the value string and the value string will also be
  trimmed to remove leading and trailing whitespace.
  If no operator can be found, the unmodified value string will be returned along the given default operator.