PR to fix #22 and #24

I updated the conversion to ts_query so it works more consistently in the `/api/search/` and `/api/rates/` endpoints and also properly wildcards both.