Question

I recently altered my schema.xml (as suggested by this post in the sunspot wiki) to help with substring searching. This works great locally. But after pushing to production and reindexing, the changes don't appear to have taken effect (i.e. substring matching doesn't seem to work). In other words, if I take the same string (i.e. "Mastercard") and search "Ma" locally, I get a "Mastercard" string as a result... but on production, I don't get anything. I'm using the sunspot_rails gem on heroku.

Was it helpful?

Solution

Figured it out. My app's schema.xml file didn't touch the websolr instance, which has its own schema.xml (editable through the "advanced configuration" tab). Made the change there and now everything works as expected. Awesome.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top