{"action":"created","issue":{"url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/68","repository_url":"https://api.github.com/repos/RedisLabsModules/RediSearch","labels_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/68/comments","events_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/68/events","html_url":"https://github.com/RedisLabsModules/RediSearch/issues/68","id":234175885,"number":68,"title":"LIMIT return redundant records on the end of list","user":{"login":"onexdrk","id":1533370,"avatar_url":"https://avatars3.githubusercontent.com/u/1533370?v=3","gravatar_id":"","url":"https://api.github.com/users/onexdrk","html_url":"https://github.com/onexdrk","followers_url":"https://api.github.com/users/onexdrk/followers","following_url":"https://api.github.com/users/onexdrk/following{/other_user}","gists_url":"https://api.github.com/users/onexdrk/gists{/gist_id}","starred_url":"https://api.github.com/users/onexdrk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onexdrk/subscriptions","organizations_url":"https://api.github.com/users/onexdrk/orgs","repos_url":"https://api.github.com/users/onexdrk/repos","events_url":"https://api.github.com/users/onexdrk/events{/privacy}","received_events_url":"https://api.github.com/users/onexdrk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-07T11:21:17Z","updated_at":"2017-06-07T12:09:31Z","closed_at":"2017-06-07T12:09:31Z","body":"From #61 \r\n\r\nSeems that paging work not absolutely correct. Imagine i want to organize paging functionality with page-size = 4\r\n\r\ncreate an index and add five documents to it:\r\n```\r\nFT.CREATE indexName SCHEMA status TEXT\r\n\r\nFT.ADD indexName doc1 1 FIELDS status open\r\nFT.ADD indexName doc2 1 FIELDS status open\r\nFT.ADD indexName doc3 1 FIELDS status open\r\nFT.ADD indexName doc4 1 FIELDS status open\r\nFT.ADD indexName doc5 1 FIELDS status open\r\n```\r\nThen i want to get first page with 4 elements in it:\r\n\r\n```\r\nFT.SEARCH indexName \"@status:open\" LIMIT 0 4\r\n1) (integer) 5\r\n2) \"doc5\"\r\n3) 1) \"status\"\r\n   2) \"open\"\r\n4) \"doc4\"\r\n5) 1) \"status\"\r\n   2) \"open\"\r\n6) \"doc3\"\r\n7) 1) \"status\"\r\n   2) \"open\"\r\n8) \"doc2\"\r\n9) 1) \"status\"\r\n   2) \"open\"\r\n```\r\nresponse correct\r\n\r\nNow i want go see last element:\r\n```\r\nFT.SEARCH indexName \"@status:open\" LIMIT 4 4\r\n1) (integer) 5\r\n2) \"doc4\"\r\n3) 1) \"status\"\r\n   2) \"open\"\r\n4) \"doc3\"\r\n5) 1) \"status\"\r\n   2) \"open\"\r\n6) \"doc2\"\r\n7) 1) \"status\"\r\n   2) \"open\"\r\n8) \"doc1\"\r\n9) 1) \"status\"\r\n   2) \"open\"\r\n```\r\nIncorrect - must contains only doc1.\r\n\r\nI think i can try fix it in backend and if it is last page - trim result and use just a tail, but it looks like a problem\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/comments/306775403","html_url":"https://github.com/RedisLabsModules/RediSearch/issues/68#issuecomment-306775403","issue_url":"https://api.github.com/repos/RedisLabsModules/RediSearch/issues/68","id":306775403,"user":{"login":"dvirsky","id":503226,"avatar_url":"https://avatars1.githubusercontent.com/u/503226?v=3","gravatar_id":"","url":"https://api.github.com/users/dvirsky","html_url":"https://github.com/dvirsky","followers_url":"https://api.github.com/users/dvirsky/followers","following_url":"https://api.github.com/users/dvirsky/following{/other_user}","gists_url":"https://api.github.com/users/dvirsky/gists{/gist_id}","starred_url":"https://api.github.com/users/dvirsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvirsky/subscriptions","organizations_url":"https://api.github.com/users/dvirsky/orgs","repos_url":"https://api.github.com/users/dvirsky/repos","events_url":"https://api.github.com/users/dvirsky/events{/privacy}","received_events_url":"https://api.github.com/users/dvirsky/received_events","type":"User","site_admin":false},"created_at":"2017-06-07T12:09:31Z","updated_at":"2017-06-07T12:09:31Z","body":"Works fine now, and I've added a test to make sure it remains like that. You can pull master and verify. Re-open if you find anything I missed. Thanks!"}}
{"actor":{"display_login":"dvirsky"}}