简体   繁体   中英

Is AGGREGATE FILTER expect case sensitive query expression in Redisearch?

I am using Redisearch module in Redis and trying to filter the data stored in Redis index using the following query.

FT.AGGREGATE MyIndex * GROUPBY 1 "@MyField" FILTER "@MyField=='value'"

I am able to get the result only for the exact word searched, but not when searched with lower case letters for a field having upper case letters and vice versa. Eg: if a field is having 'test' as value, query with "@MyField=='TEST'" or "@MyField=='Test'" doesn't work.

Kindly suggest anything possible. Thank you.

You can use the lower() function on both sides.

"lower(@MyField) == lower('TEST')"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM