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.

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top