Sunspot Solr Rollercoaster

15 Apr 2012

It is indeed a roller-coaster ride, especially when one wants to use it with Mongoid.

Here are things I have to change to make it works:

  1. Mongoid doesn't support `find_in_batches`. So, I have to write my own rake task to re-index all the models.
  2. Sunspot has a weird version conflict. In 1.3.1, the re-index task is missing. I turned to the version 1.3.0 instead. (Funny thing is that eventually the re-indexing task does not work)
  3. You cannot do `fulltexton other fields except ``text`. For auto-completing tag names, please usewith()``.

Give it a kudos