aparo/pyes — Issue #153: Duplication of parameters is required to get 'start' and 'size' to work
Author: markbirbeck
Created: 2012-01-10 22:21:33+00:00
State: open

To get `start` and `size` to work on queries the values need to be passed to *both* the `Search` object and the `search()` method, i.e., neither this:

```python
pyes.search(
pyes.Search(query, fields=fields, start=start, size=size),
doc_types=doc_types
)
```

nor this:

```python
pyes.search(
pyes.Search(query, fields=fields),
doc_types=doc_types,
start=start,
size=size,
)
```

actually work. The workaround is to put the parameters in both places:

```python
pyes.search(
pyes.Search(query, fields=fields, start=start, size=size),
doc_types=doc_types,
start=start,
size=size,
)
```