inconsistent results using * and sortby

18 views
Skip to first unread message

Michael Masouras

unread,
Jun 28, 2019, 2:20:44 PM6/28/19
to redisearch
Hi, I am getting inconsistent results in the following two queries. The queries ask for different constraints, but with the exact same modifiers (SORTBY, LIMIT, RETURN).

> FT.SEARCH ip1 "*" RETURN 1 _t LIMIT 0 1 SORTBY _t DESC

1) (integer) 101233
2) "p:789181"
3) 1) _t
   2) "1561614302"

> FT.SEARCH ip1 "@tags:{f\\:suzukicycles}" RETURN 1 _t LIMIT 0 1 SORTBY _t DESC

1) (integer) 6
2) "p:792514"
3) 1) _t
   2) "1561671353"

I expected the first query to return p:792514 as the top result since its "_t" field is bigger than p:789181.


Michael

Meir Shpilraien

unread,
Jun 29, 2019, 1:11:35 PM6/29/19
to redisearch
Can you specify which version you are using?

Michael Masouras

unread,
Jun 29, 2019, 7:16:20 PM6/29/19
to Meir Shpilraien, redisearch
I went to look at this again, and now I get the correct answer I expect. So I can't reproduce this problem anymore. 

Thank you for getting back to me, I 'll let you know if it happens again.

For the record, I don't think it's a timeout issue as both queries returned almost immediately and the index is only ~ O(100K) large.

Also, this is the same index that is causing problems in this ticket, so who knows what state it's in:

Michael


On Sat, Jun 29, 2019 at 10:11 AM Meir Shpilraien <me...@redislabs.com> wrote:
Can you specify which version you are using?

--
You received this message because you are subscribed to the Google Groups "redisearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redisearch+...@googlegroups.com.
To post to this group, send email to redis...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redisearch/ed364d9e-e68e-4e16-a471-66c332d3652c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages