#127 ✓ resolved
Brian Durand

Allow sunspot to use fields defined in schema.xml

Reported by Brian Durand | June 18th, 2010 @ 06:18 PM | in Feature Requests

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:

Sunspot.setup do

string :title, :as => :case_insenstive_title

end

This would map the title field in sunspot to the case_insensitive_title field in Solr.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Awesome Solr interaction for Ruby

People watching this ticket

Attachments

Tags

Referenced by

Pages