[search] implement ts_query search

This has couple of drawbacks:
- we use postgres-simple and a raw sql query, opaleye would be better
I guess
- there is a hack for empty query, this should be replaced by
removing the WHERE clause in this case
parent 0cc7bfc3
Pipeline #1846 passed with stage
in 34 minutes and 21 seconds