module RSolr::Char

A module that contains (1) string related methods @deprecated remove this module when we remove the method (duh)

Public Instance Methods

escape(value) click to toggle source

backslash everything that isn't a word character @deprecated - this is incorrect Solr escaping

# File lib/rsolr/char.rb, line 8
def escape value
  warn "[DEPRECATION] `RSolr.escape` is deprecated (and incorrect).  Use `RSolr.solr_escape` instead."
  value.gsub(/(\W)/, '\\\1')
end