I’m trying to query some paged results, but seeing strange behaviour.
Redisearch doesn’t seem to handle the LIMIT command right.
I’ve prepared a little example with 2 commands:
127.0.0.1:6379> FT.SEARCH idxCachedAuctionBatchItem “*” SORTBY EndDate ASC LIMIT 0 1
- (integer) 1118
- “CABI:161923”
- “AuctionBatchId”
- “161923”
…
127.0.0.1:6379> FT.SEARCH idxCachedAuctionBatchItem “*” SORTBY EndDate ASC LIMIT 1 1
- (integer) 1118
- “CABI:161923”
- “AuctionBatchId”
- “161923”
…
I expect the first command to return the first item only, the second command should return me the second item.
However each command returns the same item with the same ID.
I’m seeing the same behaviour when limiting per 10 (LIMIT 0 10, LIMIT 10 10, LIMIT 20 10…)
Am I understanding the LIMIT command wrong or is this a bug? I’m using version 1.4.0.