Reputation: 5952
I really like Sunspot in Rails, but it adds way too much to my slug size on heroku (10mb to 33mb). Is there a good, much lighter alternative to Sunspot? I only need basic full text searching for two fields.
Upvotes: 2
Views: 717
Reputation: 9093
Not too sure whether heroku does it, but since it uses pg - I don't see why tsearch2 wouldn't work, best thing is, you shouldn't need any gems (so long as you aren't afraid to write a little SQL).
Upvotes: 0
Reputation: 2200
The slug size is large because Sunspot includes a bundled instance of Solr, which is a large distribution. I believe the forthcoming 1.3 release of Sunspot splits this out into a separate gem, so the main Sunspot client gem will be a much more manageable size. 1.3 is currently out as a prerelease: https://rubygems.org/gems/sunspot/versions/1.3.0.rc4
Upvotes: 1