Can somebody point out why below is not working? Never had this issue in RediSearch 1.6
Some indexing / docid issues. Tested on fresh install Redis 6.2.6 and RediSearch 2.2.5
redis> ft.create “test_idx” SCHEMA title TEXT WEIGHT 4.0 body TEXT
OK
redis> ft.add “test_idx” “test_idx:id:1” “1.0” “REPLACE” “FIELDS” “title” “MY TITLE” “body” “My contents”
OK
redis> ft.create “test_idx2” SCHEMA title TEXT WEIGHT 4.0 body TEXT
OK
redis> ft.add “test_idx2” “test_idx2:id:1” “1.0” “REPLACE” “FIELDS” “title” “MY TITLE 2” “body” “My contents 2”
OK
redis> ft.search test_idx2 ‘*’ limit 0 10
- (integer) 2
- “test_idx:id:1”
-
- “title”
- “MY TITLE”
- “body”
- “My contents”
- “test_idx2:id:1”
-
- “title”
- “MY TITLE 2”
- “body”
- “My contents 2”
#######################
This is incorrect
#######################
redis> ft.drop “test_idx”
OK
redis> ft.create “test_idx” SCHEMA title TEXT WEIGHT 4.0 body TEXT
OK
redis> ft.add “test_idx” “test_idx:id:1” “1.0” “REPLACE” “FIELDS” “title” “MY TITLE” “body” “My contents”
OK
redis> ft.search test_idx ‘*’ limit 0 10
- (integer) 1
- “test_idx:id:1”
-
- “title”
- “MY TITLE”
- “body”
- “My contents”
redis> ft.search test_idx2 ‘*’ limit 0 10
- (integer) 1
- “test_idx:id:1”
-
- “title”
- “MY TITLE”
- “body”
- “My contents”
#######################
This is incorrect
#######################