Module: Solr::Support::SchemaHelper

Instance Method Summary collapse

Instance Method Details

#solarize_field(field) ⇒ Object



4
5
6
7
8
# File 'lib/solr/support/schema_helper.rb', line 4

def solarize_field(field)
  core = Solr.current_core_config
  field_config = core.field_by_name(field.to_sym) if core
  field_config ? field_config.solr_field_name : field.to_s
end