module SimpleSolrClient
Pre-define the inheritance so Ruby doesn't complain on import.
Constants
- ESCAPE_CHARS
- ESCAPE_MAP
- ESCAPE_PAT
- SAMPLE_CORE_DIR
Where is the sample core configuration?
- VERSION
Public Class Methods
lucene_escape(str)
click to toggle source
Escape those characters that need escaping to be valid lucene syntax. Is not called internally, since how as I supposed to know if the parens/quotes are a part of your string or there for legal lucene grouping?
# File lib/simple_solr_client.rb, line 23 def self.lucene_escape(str) esc = str.to_s.gsub(ESCAPE_PAT, ESCAPE_MAP) end