aparo/pyes — Issue #163: maximum recursion depth exceeded
Author: lboquillon
Created: 2012-02-21 17:16:46+00:00
State: open

Hi,

I have a index such as:

{
"comments": "",
"food": {
"description": "rice",
"id": null,
"price": "50"
},
"id": "4f43c7674ab63c1bbc000017",
"latitude": "",
"longitude": "",
"time": "2012-02-21T12:03:43.723000",
"ubication": "avenida siempre viva",
"user": {
"about": "music",
"email": "someeamil@gmail.com",
"favorite_food": "",
"id": "4f42b3df4ab63c1010000000",
"name": "",
"picture": ""
}

i have a serach:

resulset = cnn.search(query = TermQuery('ubication', 'siempre'), indices = 'restaurant')

I go to
resulset.total

I get the expected number (103), but if I look in resulset._results['hits']['hits'], there are only 10 results.

if I try to iterate get the error message: maximum recursion depth exceeded

for i in resulset:
print i

the same for

resulset[someNumber]

return repr(self)
File "C:\Python27\lib\site-packages\pyes\es.py", line 84, in __repr__
return repr(self)
File "C:\Python27\lib\site-packages\pyes\es.py", line 84, in __repr__
return repr(self)
File "C:\Python27\lib\site-packages\pyes\es.py", line 84, in __repr__
return repr(self)
File "C:\Python27\lib\site-packages\pyes\es.py", line 84, in __repr__
return repr(self)
File "C:\Python27\lib\site-packages\pyes\es.py", line 84, in __repr__
return repr(self)
RuntimeError: maximum recursion depth exceeded

thanks and regards