Commit 74ba6f73 by Tran Hoang Viet

VietTH: Hotfix issue searching more than 1 word

parent 5a34ad79
......@@ -27,7 +27,7 @@ module Solr extend ActiveSupport::Concern
return unless query.is_a?(Hash)
@solr_page = options[:page] || 1
query = query.inject('') { |str, item| str << "#{item.first}:#{item.last}" << ' ' }
query = query.inject('') { |str, item| str << "#{item.first}:(#{item.last})" << ' ' }
results = rsolr.paginate(
solr_page,
solr_per_page,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment