FT.SEARCH alias name staring with "as" in RETURN

The following statement drops error:

FT.SEARCH index * RETURN 3 "$.someJsonPath" AS asa
(error) Alias for RETURN cannot be `AS`

When alias name is starting with “AS” FT.SEARCH and FT.AGGREGATE drops error.
Is it a known feature or a bug?

Redis: 6.2.6
ReJSON: ver=20007
search: ver=20207

Thanks for reporting it, looks like a bug. Please open an issue here: Issues · RediSearch/RediSearch · GitHub

Thank you for solving this issue.

1 Like