I had pg_search working on my Rails 3.2.3 application using multisearch. Then I performed the initialization provided by nertzy (by pg_search author) in this post. . Now when I run the search, I get the following error:
PG::Error: ERROR: operator does not exist: text % unknown LINE 1: ... ((coalesce("pg_search_documents"."content", '')) % 'searchterm... ^ HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.
My view is visualized using this code:
<%= @pg_search_documents.each do |pg_search_document| %> <%= pg_search_document.searchable.title %> <% end %>
The rest of my setup can be found here. Any help is greatly appreciated.
source share