Method: SolrQuery.escape_solr_string

Defined in:
lib/solr_query.rb

.escape_solr_string(string) ⇒ Object



101
102
103
# File 'lib/solr_query.rb', line 101

def escape_solr_string(string)
  string.gsub(SOLR_ESCAPE_REGEXP, "\\\\\\0").strip
end