You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the Redis Stack everything works fine and the Program can run without any issues. docker run -p 6379:6379 -p 8001:8001 redis/redis-stack
When running Dragonfly I'm facing a issue during : var newton = await customers.Where(x => x.FullName == "Albert Einstein").FirstOrDefaultAsync();
I have debugged it a little and got down to the command that is send to the Redis/Dragonfly Server: "FT.SEARCH" "customer-idx" "(@FullName:{Albert\\ Einstein})" "LIMIT" "0" "1" // What I see in the RedisInsight Profiler
or FT.SEARCH customer-idx (@FullName:{Albert\ Einstein}) LIMIT 0 1 // What I see in Code
But at the same time the Redis Server is capable of handling it. It seems to be the escaping of spaces in those search parameters are handled differently and the braces around the whole query. Cuz this works in Dragonfly but not on Redis : FT.SEARCH customer-idx "@FullName:{\"Albert Einstein\"}" LIMIT 0 1
Error on Redis when running this command : "Syntax error at offset 11 near FullName"
Describe the bug
I'm running the example project of Redis OM for .Net.
https://github.com/redis/redis-om-dotnet/tree/main/examples/Redis.OM.CreateIndexStore
Using the Redis Stack everything works fine and the Program can run without any issues.
docker run -p 6379:6379 -p 8001:8001 redis/redis-stack
When running Dragonfly I'm facing a issue during :
var newton = await customers.Where(x => x.FullName == "Albert Einstein").FirstOrDefaultAsync();
I have debugged it a little and got down to the command that is send to the Redis/Dragonfly Server:
"FT.SEARCH" "customer-idx" "(@FullName:{Albert\\ Einstein})" "LIMIT" "0" "1" // What I see in the RedisInsight Profiler
or
FT.SEARCH customer-idx (@FullName:{Albert\ Einstein}) LIMIT 0 1 // What I see in Code
This results in a Query Syntax error on Dragonfly.
According to the docs of Redis this is not how a exact match for a query should look like:
https://redis.io/docs/interact/search-and-query/query/exact-match/
But at the same time the Redis Server is capable of handling it. It seems to be the escaping of spaces in those search parameters are handled differently and the braces around the whole query. Cuz this works in Dragonfly but not on Redis :
FT.SEARCH customer-idx "@FullName:{\"Albert Einstein\"}" LIMIT 0 1
Error on Redis when running this command :
"Syntax error at offset 11 near FullName"
Issue on Redis OM for that:
redis/redis-om-dotnet#425
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Work the same way as Redis Server
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: