Query.{initial,any,final}SubString work by translating the string into a Query.match pattern. For example, Query.initialSubString(a, Query.value("x")) is equivalent to Query.match(a, Query.value("x*")). The problem arises if "x" is a string that already contains wildcards. This string should be a literal match, but the implementation will interpret the wildcards as such.
|