Commit 084d72b3 by Tran Hoang Viet

VietTH: Hotfix issue search with regex '~'

parent 58360014
...@@ -39,8 +39,8 @@ module Solr extend ActiveSupport::Concern ...@@ -39,8 +39,8 @@ module Solr extend ActiveSupport::Concern
escape = solr_options_data[:escape].present? escape = solr_options_data[:escape].present?
end end
value = Regexp.escape(value) if escape.present? value = %Q("#{value}") if escape.present?
str << "#{item.first}:(#{value})" << ' ' str << "#{item.first}:#{value}" << ' '
end end
results = rsolr.paginate( results = rsolr.paginate(
......
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