I can't seem to figure out why I'm getting the following error:

```
can't convert Array into Hash

```

Here's the application trace:

```
app/models/channel.rb:21:in `search'
app/controllers/posts_controller.rb:107:in `browse'

```

The following code is from channel.rb (referenced in the app trace), where line 21 is "tire.search...":

```
def self.search(params)
  tire.search(['posts_index', 'channels_index'],{load: true}) do
    query { string params[:query], default_operator: "AND" } if params[:query].present? 
    sort { by :created_at, "desc" } if params[:query].blank?
  end
end

```

I've also included the browse action of posts\_controller.rb, also referenced in the trace above:

```
def browse
    @user = current_user
    @channels = Channel.search(params)
    @posts = Post.search(params)
end

```

My goal is to search multiple indexes using Tire/ElasticSearch. Any help would be appreciated!