Sourcecode that is used in http://zdk.github.io/full-text-search-with-postgresql-and-rails-4-for-the-love/  article