Frage

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.

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top