Modified solver to user pg_search