Module: RSolr::Char Deprecated
- Included in:
- RSolr
- Defined in:
- lib/rsolr/char.rb
Overview
Deprecated.
remove this module when we remove the method (duh)
A module that contains (1) string related methods
Instance Method Summary collapse
-
#escape(value) ⇒ Object
deprecated
Deprecated.
-
this is incorrect Solr escaping
-
Instance Method Details
#escape(value) ⇒ Object
Deprecated.
-
this is incorrect Solr escaping
backslash everything that isn’t a word character
8 9 10 11 |
# 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 |