Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/elastic_ransack/core_ext.rb
Direct Known Subclasses
Constant Summary collapse
- LUCENE_ESCAPE_REGEX =
/(\+|-|&&|\|\||!|\(|\)|{|}|\[|\]|\^|"|~|\*|\?|:|\\|\/)/
Instance Method Summary collapse
Instance Method Details
#lucene_escape ⇒ Object
6 7 8 |
# File 'lib/elastic_ransack/core_ext.rb', line 6 def lucene_escape self.gsub(LUCENE_ESCAPE_REGEX, "\\\\\\1") end |