Fixed issues with pg_search implementation