karmi/tire — Issue #126: Support the :load option with custom/raw queries
Author: nickhoffman
Created: 2011-10-13 19:02:02+00:00
State: open

In #61, support for the _:load_ option was added to Tire::Model::Search and Tire::DSL. However, if the _options_ arg that's given to Tire::DSL#search is a hash and includes the _:load_ option, the query to ES fails.

This is because the entire hash (including `:load => true`) is sent to ES as the request's payload, but `:load => true` invalidates the query. Thus, it's not possible to provide the _:load_ option when providing a hash.