{"action":"opened","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/893","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/893/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/893/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-ios/issues/893/events","html_url":"https://github.com/couchbase/couchbase-lite-ios/issues/893","id":103088903,"number":893,"title":"query.postFilter with limit gives limit+1 results.","user":{"login":"ajithrnayak","id":3415400,"avatar_url":"https://avatars.githubusercontent.com/u/3415400?v=3","gravatar_id":"","url":"https://api.github.com/users/ajithrnayak","html_url":"https://github.com/ajithrnayak","followers_url":"https://api.github.com/users/ajithrnayak/followers","following_url":"https://api.github.com/users/ajithrnayak/following{/other_user}","gists_url":"https://api.github.com/users/ajithrnayak/gists{/gist_id}","starred_url":"https://api.github.com/users/ajithrnayak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajithrnayak/subscriptions","organizations_url":"https://api.github.com/users/ajithrnayak/orgs","repos_url":"https://api.github.com/users/ajithrnayak/repos","events_url":"https://api.github.com/users/ajithrnayak/events{/privacy}","received_events_url":"https://api.github.com/users/ajithrnayak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-25T18:35:09Z","updated_at":"2015-08-25T18:35:09Z","closed_at":null,"body":"I observed that applying \"limit + postFilter\" gives me **limit+1** results.\r\n\r\nFollowing returns me 51 results (without limit, 354 results).\r\n\r\n`query.postFilter = [NSPredicate predicateWithFormat:@\"key[3] == %@\",@\"created\"];`\r\n `query.limit = 50;`\r\n`[query run:nil]`\r\n\r\nFrom community group's [post][1] \r\nAnd, I'm using version 1.1.1(enterprise) downloaded from continuous build's dashboard.\r\n\r\n[1]:https://groups.google.com/d/msg/mobile-couchbase/kRMipQg8WRc/LxvIV4deLAAJ"}}