aparo / pyes

Python connector for ElasticSearch - the pythonic way to use ElasticSearch
BSD 3-Clause "New" or "Revised" License
607 stars 270 forks source link

Search object with script_fields causes a problem when serializing #409

Closed ghost closed 10 years ago

ghost commented 10 years ago

See query.py line 225

elif isinstance(self.script_fields, dict): res['script_fields'] = self.script_fields.serialize()

If the parameter script_fields is a dict object, then this line will cause an exception since there's no serialize method of a dict