RedisClient is a fast, fully-functional and user-friendly client for Redis, optimized for performance. RedisClient supports the latest versions of Redis starting from 2.6 to 6.0
Great job on the redis client!
Today I was connecting to RediSearch and I think I might have found a small issue.
For a case such as this one, where double quotes are used:
RedisClient\Exception\ErrorResponseException: Syntax error at offset 11 near not in ...
redis monitor is reporting a following command:
"FT.SEARCH" "index" "'@location:\"not far\"'"
However I am not sure if it's escape related, or is it just the double quote character.
It is the recommended syntax:
https://oss.redislabs.com/redisearch/Query_Syntax.html
See "Exact phrases are wrapped in quotes, e.g "hello world"".
When running the same command directly, the syntax issue does not occur:
I applied a temporary workaround - single quotes instead of double quotes, which seems to work fine.
Sadly I was not able to identify a place in the code, which might be the reason for this behaviour. I hope you will be able to.
Dear Alex,
Great job on the redis client! Today I was connecting to RediSearch and I think I might have found a small issue. For a case such as this one, where double quotes are used:
A following situation happens:
redis monitor is reporting a following command:
However I am not sure if it's escape related, or is it just the double quote character. It is the recommended syntax: https://oss.redislabs.com/redisearch/Query_Syntax.html See "Exact phrases are wrapped in quotes, e.g "hello world"".
When running the same command directly, the syntax issue does not occur:
I applied a temporary workaround - single quotes instead of double quotes, which seems to work fine. Sadly I was not able to identify a place in the code, which might be the reason for this behaviour. I hope you will be able to.
Thank you! Marcin