I am using Redisearch module in Redis and trying to search for a value in TEXT field using below query. It returns all the documents with lower case values like 'test or Test' and no data which has all the upper case letters 'TEST' are being returned.

FT.search MyIndex @MyField:"test"

Kindly suggest something. Thank you.

I have a similar Index as created below, I get all the records only when I add 'tjøp | TJØP' or 'tjøp*' in the query.

FT.CREATE MyIndex SCHEMA name TEXT

ft.add MyIndex "110011" 1.0 FIELDS name "tjøp plane"

ft.add MyIndex "110012" 1.0 FIELDS name "file TJØP"

ft.add MyIndex "110013" 1.0 FIELDS name "one TJØP more"

ft.add MyIndex "110015" 1.0 FIELDS name "one TJØP a/s more"

127.0.0.1:6379> ft.search MyIndex @name:"tjøp"

  1. (integer) 1
  2. "110011"
    1. "name"
    2. "tj\xc3\xb8p plane" 127.0.0.1:6379> ft.search MyIndex @name:"tjøp | TJØP"
  3. (integer) 4
  4. "110011"
    1. "name"
    2. "tj\xc3\xb8p plane"
  5. "110015"
    1. "name"
    2. "one TJ\xc3\x98P a/s more"
  6. "110013"
    1. "name"
    2. "one TJ\xc3\x98P more"
  7. "110012"
    1. "name"
    2. "file TJ\xc3\x98P"
0

There are 0 best solutions below