Full text-search with ranking. It’s a popular feature in many web applications and there’s a great deal of
full-featured and extremely capable solutions available to a Ruby/Rails developer, for example, search servers like
Solr (Lucene)
or more Rails-specific solutions like Thinking Sphinx
(Sphinx).
TL;DR
If you are already using PostgreSQL in your project, take time to consider if it can already fulfil your text search
requirements before reaching for other solutions.
Discussion
Developers of web applications often ask for advice concerning which text search technology they should choose for their app.
I’ve noticed that within the Ruby community, a pre-established shortlist of solutions is typically presented that
refers to Solr, Sphinx and similar dedicated search/indexing technologies
Liquid error: undefined method `lstrip’ for #<Array:0x007fbadd8aacb0>
Stand-alone dedicated text search servers could well add new layers of potentially unwelcome dependencies and complexity to
web applications in their early stages of development. In addition, search servers can consume more valuable resources (RAM)
when deployed. This isn’t an issue for everybody, but it can be a significant problem for small to medium sized
projects on a tight budgets when they are deployed to smaller VPS instances.