mirror of
https://github.com/redis/redis.git
synced 2026-02-03 20:39:54 -05:00
This PR introduces "IN" overloading for strings in Vector Sets VSIM
FILTER expressions.
Now it is possible to do something like:
"foo" IN "foobar"
IN continues to work as usually if the second operand is an array,
checking for membership of the left operand.
Ping @rowantrollope that requested this feature. I'm evaluating if to
add glob matching functionalities via the `=~` operator but I need to do
an optimization round in our glob matching function probably. Glob
matching can be slower, at the same time the complexity of the greedy
search in the graph remains unchanged, so it may be a good idea to have
it.
Case insensitive search will be likely not be added however, since this
would require handling unicode that is kinda outside the scope of Redis
filters. The user is still able to perform `"foo" in "foobar" || "FOO"
in "foobar"` at least.
|
||
|---|---|---|
| .. | ||
| redisbloom | ||
| redisearch | ||
| redisjson | ||
| redistimeseries | ||
| vector-sets | ||
| common.mk | ||
| Makefile | ||