Upgrading to sunspot_rails 1.2 pre some of this worked.
I have solr fields title_display and subject_facet I'm trying to index to.
string :title_display, :as => :title_display do |resource|
string :subject_facet, :as => :subject_facet do |r|
This works in the case of a non-multiValued field in the case of
title_display. It fails for subject_facet with the error
"subject_facet is not a multiple-value field, so it cannot index
values". Including the option :multiple => true results in a different
Solr Response: ERRORunknown_field_subject_facetm
Do I have my syntax wrong? If not it seems that in the case where the
:as option is specified it ought to either:
1. Not require the :multiple option to index an array. Someone using
the :as option will have to know their own Solr schema enough to know
whether the field is multiValued or not. So either a single value or
an Array ought to be accepted.
2. Require the :multiple option for indexing arrays, but not append
the "m" to the end of the field name. If :as is specified, then
Sunspot should never change that name based on any options.
Other options for this behavior? Or maybe I'm misunderstanding the
purpose of the :as option?
BTW, I've been unable to find a key for what all the Sunspot dynamic
field name suffixes mean. Where would I look for this?