lib/sunspot/query/dismax.rb in ruben-sunspot-1.1.1 vs lib/sunspot/query/dismax.rb in ruben-sunspot-1.1.2
- old
+ new
@@ -22,10 +22,10 @@
#
def to_params
if @boost_functions.empty?
params = {:q => @keywords}
else
- params = {:q => "{!boost b=#{@boost_functions.map { |boost_function| boost_function.to_s }} v=\"#{@keywords}\" defType=dismax}"}
+ params = {:q => "{!boost b=#{@boost_functions.map { |boost_function| boost_function.to_s }} v=#{@keywords} defType=dismax}"}
end
params[:fl] = '* score'
params[:qf] = @fulltext_fields.values.map { |field| field.to_boosted_field }.join(' ')
params[:defType] = 'dismax'
if @phrase_fields