Allow sunspot to use fields defined in schema.xml
I have a patch that will allow sunspot to use fields defined in the Solr schema.xml file. This is necessary for setting up sunspot to work with legacy Solr indexes and can be extremely useful in exposing Solr functionality on special fields.
The syntax for specifying a specific Solr field is:
string :title, :as => :case_insenstive_title
This would map the title field in sunspot to the case_insensitive_title field in Solr.
Comments and changes to this ticket
- State changed from new to resolved
(from [2955bf48d0fbec48f6a1a86f709030f017646438]) Allow specifying :as option on field setup
Binds a sunspot field to a field defined in the solr schema.xml so that
sunspot can be used with custom/legacy solr schemas.