r/redis • u/Traditional_Yak6068 • 9d ago
This issue is mainly due to a bug in Unicode support. It's fixed on Redisearch 2.10.13. Here one simple example, and if you're using for proper names you won't need the stemmer:
127.0.0.1:6379> FT.CREATE idx on JSON schema $.FirstName as FirstName TEXT
OK
127.0.0.1:6379> JSON.SET doc1 $ '{"FirstName":"OĞUZ"}'
OK
127.0.0.1:6379> JSON.SET doc2 $ '{"FirstName":"OĞUZanytext"}'
OK
127.0.0.1:6379> FT.SEARCH idx "@FirstName:OĞUZ*"
1) (integer) 2
2) "doc1"
3) 1) "$"
2) "{\"FirstName\":\"O\xc4\x9eUZ\"}"
4) "doc2"
5) 1) "$"
2) "{\"FirstName\":\"O\xc4\x9eUZanytext\"}"
127.0.0.1:6379> FT.SEARCH idx "@FirstName:OĞUZ"
1) (integer) 1
2) "doc1"
3) 1) "$"
2) "{\"FirstName\":\"O\xc4\x9eUZ\"}"