karmi/tire — Issue #215: Mix string and range in query block
Author: zirni
Created: 2012-01-24 13:42:54+00:00
State: open

Hello,

i try to mix a string query with a range query.
it doesn't work for me right now.
it looks like that only one condition is allowed
in the query block, isn't it?

Tire.search index_name, :load => true, :per_page => 33 do |s|
s.query do |qu|
# TODO: range wins here
# range is the result of the query block
qu.string query_string, :default_operator => 'AND'
qu.range :points, points_range if points_range?
end
end

Thanks for help.

Best regards,
zirni