{"number":111,"pull_request":{"number":111,"issue_url":"https://github.com/aparo/pyes/issues/111","head":{"label":"alambert:master","repo":{"master_branch":null,"name":"pyes","created_at":"2011-10-10T19:04:46Z","size":132,"clone_url":"https://github.com/alambert/pyes.git","private":false,"updated_at":"2011-10-13T22:44:41Z","watchers":1,"ssh_url":"git@github.com:alambert/pyes.git","url":"https://api.github.com/repos/alambert/pyes","git_url":"git://github.com/alambert/pyes.git","language":"Python","fork":true,"svn_url":"https://svn.github.com/alambert/pyes","id":2550248,"pushed_at":"2011-10-13T22:44:41Z","open_issues":0,"homepage":"","description":"Python connector for ElasticSearch","forks":0,"html_url":"https://github.com/alambert/pyes","owner":{"avatar_url":"https://secure.gravatar.com/avatar/9f60d3d23ffcb1de88371b58838d338b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9f60d3d23ffcb1de88371b58838d338b","url":"https://api.github.com/users/alambert","id":69652,"login":"alambert"}},"sha":"f69d7ee5dc374f09c42f0e15c1f2a202f51bffe2","ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/9f60d3d23ffcb1de88371b58838d338b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9f60d3d23ffcb1de88371b58838d338b","url":"https://api.github.com/users/alambert","id":69652,"login":"alambert"}},"merged_by":{"avatar_url":"https://secure.gravatar.com/avatar/9f49104447ff24fa4247736bdd8332a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9f49104447ff24fa4247736bdd8332a4","url":"https://api.github.com/users/aparo","id":28075,"login":"aparo"},"created_at":"2011-10-13T20:07:31Z","changed_files":2,"merged":true,"body":"ResultSet.total is an int property, but slicing a ResultSet tries to call it.\r\n\r\nFixes this issue:\r\n<pre>\r\nIn [8]: c.search(pyes.query.MatchAllQuery())[1:]\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n/private/tmp/pyes/<ipython-input-8-06968cce9eed> in <module>()\r\n----> 1 c.search(pyes.query.MatchAllQuery())[1:]\r\n\r\n/private/tmp/pyes/pyes/es.py in __getitem__(self, val)\r\n   1386             return val, val + 1\r\n   1387\r\n-> 1388         start, end = get_start_end(val)\r\n   1389         model = self.connection.model\r\n   1390\r\n\r\n/private/tmp/pyes/pyes/es.py in get_start_end(val)\r\n   1380                 else:\r\n   1381                     start -= 1\r\n-> 1382                 end = val.stop or self.total()\r\n   1383                 if end < 0:\r\n   1384                     end = self.total() + end\r\n\r\nTypeError: 'int' object is not callable\r\n\r\nIn [9]:\r\n</pre>","comments":0,"title":"Slicing a ResultSet causes TypeError: 'int' object is not callable; BoolQuery ignoring the value of disable_coord","additions":3,"diff_url":"https://github.com/aparo/pyes/pull/111.diff","updated_at":"2011-10-14T12:03:33Z","url":"https://api.github.com/repos/aparo/pyes/pulls/111","id":401401,"patch_url":"https://github.com/aparo/pyes/pull/111.patch","mergeable":null,"merged_at":"2011-10-14T12:03:33Z","commits":2,"closed_at":"2011-10-14T12:03:33Z","user":{"avatar_url":"https://secure.gravatar.com/avatar/9f60d3d23ffcb1de88371b58838d338b?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9f60d3d23ffcb1de88371b58838d338b","url":"https://api.github.com/users/alambert","id":69652,"login":"alambert"},"deletions":3,"html_url":"https://github.com/aparo/pyes/pull/111","base":{"label":"aparo:master","repo":{"master_branch":null,"name":"pyes","created_at":"2010-07-22T16:33:51Z","size":600,"clone_url":"https://github.com/aparo/pyes.git","private":false,"updated_at":"2011-10-14T12:03:34Z","watchers":125,"ssh_url":"git@github.com:aparo/pyes.git","url":"https://api.github.com/repos/aparo/pyes","git_url":"git://github.com/aparo/pyes.git","language":"Python","fork":false,"svn_url":"https://svn.github.com/aparo/pyes","id":791373,"pushed_at":"2011-10-14T12:03:34Z","open_issues":15,"homepage":"","description":"Python connector for ElasticSearch","forks":46,"html_url":"https://github.com/aparo/pyes","owner":{"avatar_url":"https://secure.gravatar.com/avatar/9f49104447ff24fa4247736bdd8332a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9f49104447ff24fa4247736bdd8332a4","url":"https://api.github.com/users/aparo","id":28075,"login":"aparo"}},"sha":"073d80911af6cfd5dbba84d7ed8537dd48261dc4","ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/9f49104447ff24fa4247736bdd8332a4?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9f49104447ff24fa4247736bdd8332a4","url":"https://api.github.com/users/aparo","id":28075,"login":"aparo"}},"state":"closed"},"action":"closed"}