-
Notifications
You must be signed in to change notification settings - Fork 25
Description
This query:
ft.search json:search "@field: w'fulltext*5d13e891162a456babf2fd9b864df96d'" DIALECT 2
when executed in redis-cli returns correct data.
According to https://redis.io/docs/latest/develop/interact/search-and-query/advanced-concepts/query_syntax/:
"In DIALECT 2 or greater, wildcard pattern matches are expressed as "w'foobar?'". Note the use of double quotes to contain the w pattern."
Double quotes are required so I try to add them to the query at the begging and the end of the query:
query.append(String.format("\"@field: w'%s", text) .append("*").append(role).append("'\""));
but when running:
`connection.sync().ftSearch("json:search" query);
the following error is returned:
io.lettuce.core.RedisCommandExecutionException: Syntax error at offset 1 near text
lettucemod version 3.8.1