`contains` checks for an exact match, so it doesn'...
# announcements
k
contains
checks for an exact match, so it doesn't really fit your use case.
n
Did you mean the first query to be
"Hel"
or really
"Hl"
? If the latter: how should that match? using regex
"(?i).*H.*l.*"
?
k
I think he wants to check whether the taget string contains all of the characters of the query string. @lab?
n
that would be a strange filter. Better wait than speculate
l
Sorry for the late reply @nkiesel @karelpeeters I got kick out of a library (there're closing) 😛 The query is really
Hl
, as in the target string contains all of the characters from the query string. Since Hello and Hell both have "h" and "l", they are chosen.