def solr_name(field_name, *opts)
      index_type, args = if opts.first.kind_of? Hash
        [:stored_searchable, opts.first]
      elsif opts.empty?
        [:stored_searchable, {type: :text}]
      else
        [opts[0], opts[1] || {type: :string}]
      end

      indexer(index_type).name_and_converter(field_name, args).first
    end
def solr_name(field_name, *opts)
      index_type, args = if opts.first.kind_of? Hash
        [:stored_searchable, opts.first]
      elsif opts.empty?
        [:stored_searchable, {type: :text}]
      else
        [opts[0], opts[1] || {type: :string}]
      end

      indexer(index_type).name_and_converter(field_name, args).first
    end
Given a field name, index_type, etc., returns the corresponding Solr name.
 TODO field type is the input format, maybe we could just detect that?
 @param [String] field_name the ruby (term) name which will get a suffix appended to become a Solr field name
 @param opts - index_type is only needed if the FieldDescriptor requires it (e.g. :searcahble)
 @return [String] name of the solr field, based on the params