Full text search and variable binding using postgres and jOOQ not working
Since @posz did not post his comment as an answer, and it has been quite a while, I'll post his reply as an answer myself for clarity.
Try ... to_tsquery(?) ... -- the binding mark ? won't work inside a literal.