A numeric filter is not working with one index while is working with another same index. What could be the reason?

137 views
Skip to first unread message

Vishal Patel

unread,
Aug 28, 2019, 4:33:26 AM8/28/19
to RediSearch Discussion Forum
RediSearch Numeric filter stopped working suddenly for the one index in production. While its working in another same index in same server.


Schema is as provided below and I am trying to do filter on field ExpireAt

 Schema of Index

I have already tried below queries. all providing 0 documents.

ft.search 9194_Cache "@ExpireAt:[0 inf]" Limit 0 2

ft.search 9194_Cache "@ExpireAt:[-1 inf]" Limit 0 2

ft.search 9194_Cache "@ExpireAt:[637024139268750000 637024139268750000]" Limit 0 2

For more plz visit stackoverflow query at:  https://bit.ly/2PsHB1E


Meir Shpilraien

unread,
Aug 28, 2019, 5:17:49 AM8/28/19
to RediSearch Discussion Forum
Can you specify the redisearch version you are using? Also if you can send us an RDB to investigate it will be great.

Vishal Patel

unread,
Aug 28, 2019, 5:56:53 AM8/28/19
to RediSearch Discussion Forum
Dear Meir,


Can you provide the command to get redisearch version?

Meir Shpilraien

unread,
Aug 28, 2019, 6:44:20 AM8/28/19
to RediSearch Discussion Forum
Its written in the redis log file, also 'MODULE list' command will give you the version.

Vishal Patel

unread,
Aug 30, 2019, 3:30:59 AM8/30/19
to RediSearch Discussion Forum
 RediSearch version 1.99.1 (Git=v1.4.2-357-ga6f101f)

You can download dump.rdb file from here :https://bit.ly/2LdLPFc




On Wednesday, August 28, 2019 at 2:47:49 PM UTC+5:30, Meir Shpilraien wrote:

Tim Mixell

unread,
Feb 17, 2020, 10:39:59 AM2/17/20
to RediSearch Discussion Forum
Greetings,

I believe I'm encountering a similar issue. When attempting to perform an "equals" query against a numeric field, I get zero results. However, I can search across a range on the same field and retrieve the document in question.

127.0.0.1:6379> ft.search activeteams:20190730 '@teamID:[5278 5278]' limit 0 1000
1) (integer) 0

127.0.0.1:6379> ft.search activeteams:20190730 '@teamID:[5000 5278]' sortby teamID desc limit 0 1
1) (integer) 263
2) "testing_teamID_5278"
3)  1) "teamID"
    2) "5278"

Note that ft.get returns the record in question.

Performing a flushdb and rebuilding the index appears to solve the issue, albeit, temporarily.

We're running:
Redis 5.0.7 (00000000/0) 64 bit
RediSearch version 99.99.99 (Git=v1.6.6-6-g382e216e)




dump.rdb

Yuriy Mann

unread,
Mar 6, 2020, 3:51:16 AM3/6/20
to RediSearch Discussion Forum
Does anyone know if this is an acknowledged bug? 
I was just going to start using Redisearch in production in a similar way and it would be great to know if this was acknowledged/fixed/rejected. Or is there a workaround?

Meir Shpilraien

unread,
Mar 6, 2020, 8:12:07 AM3/6/20
to RediSearch Discussion Forum
Hey Yuriy,

Happy to hear you are planing to start using RediSearch. Regarding this issue it was a bug on the forkgc and already been fixed (https://github.com/RediSearch/RediSearch/pull/1089).
It will be included in v1.6.9 which is going to be release next week.

Yuriy Mann

unread,
Mar 6, 2020, 8:19:12 AM3/6/20
to RediSearch Discussion Forum
Great to know, thank you. Will check it out next week. 
Reply all
Reply to author
Forward
0 new messages