erickt/tire — comment on commit c16192310326eec8c1fbd09db28eeb7cd988e65f
File:  line 0
By karmi:

Hi, thanks for looking into this, I'd love to support more `search_type`s.

The thing is, the proposed interface seems less then perfect to me. I think we should expose [all the URI parameters](http://www.elasticsearch.org/guide/reference/api/search/request-body.html), namely `search_type` and `timeout`.

So, something like this:

```ruby
s = Search::Search.new('index', search_type: 'scan', timeout: 1) do
query { string 'title:foo' }
end
```

would make more sense to me. What do you think?

P.S.

Ultimately, I'd aim for something like:

```ruby
all = Tire.count 'articles'
```

and

```ruby
ruby = Tire.count('articles') { query { terms :tags, ['ruby'] } }
```

And of course a first-class DSL support for the scan/scroll searches.