Testing with sunspot with cucumber can be tricky since you need to manage the solr process separately. This post introduces a new gem “sunspot_test” and how to easily use it.
In my previous post I mentioned that out of the box Solr breaks up the search indexes on whitespace. This post will outline how you can configure Solr to search within words.
Full text searching can be a tricky subject. Luckily there are a number of great tools out there that are much better than doing “… content like ‘cars’ …”. One excellent tool that we have used on numerous projects is Solr along with the Ruby library Sunspot.
We have experienced a lot of success using Solr and Sunspot for full text searching on our Rails projects. And like our Cucumber series, we’re going to start a series of related posts just on Sunspot/Solr.