aparo/pyes — Issue #112: Search object requires query
Author: mchruszcz
Created: 2011-10-17 11:34:10+00:00
State: open

Hi,

The `query.Search` class tries to serialise `query` even when it wasn't provided resulting in an unhandled exception like this:

```
/Users/michal/dev/capital/branches/targeted_device/pyes/query.pyc in serialize(self)
129
130 """
--> 131 res = {"query": self.query.serialize()}
132 if self.filter:
133 res['filter'] = self.filter.serialize()
```