module RSolr::Char

def escape(value)

backslash everything that isn't a word character
RSolr.escape('asdf')
escape - from the solr-ruby library
def escape(value)
  value.gsub(/(\W)/, '\\\\\1')
end