[search] fix to_tsquery call

When user searched for a phrase with space inside, in database, the
'to_tsquery' function raised an sql error. One should use
'plainto_tsquery'. Also, a proper test was added.
4 jobs for 303-dev-node-story-refactoring in 20 minutes and 18 seconds (queued for 20 minutes and 45 seconds)
Status Job ID Name Coverage
  Cabal
failed #11406
cabal

00:20:18

 
  Stack
skipped #11407
stack
 
  Bench
skipped #11408
allowed to fail manual
bench
 
  Test
skipped #11409
test
 
Name Stage Failure
failed
cabal Cabal
+ actual_cabal_project_freeze_hash=745c65c246998cfda4d2a7a22df44a9f1f7fb0927e2afc2f16712861bf552c76
+ [[ c9fe39301e8b60bfd183e60e7e25a14cd1c9c66d8739bf9041ca3f4db89db7c6 != 3f5d6b7f26cac4aa5a7f87ba0227a7671041dfe46643ddef79512eb49bd876ec ]]
+ echo -e '\e[31mERROR! hash mismatch between expected cabal.project and the one computed by cabal2stack.\e[0m'
+ echo -e '\e[33mPlease update the hashes inside the '\''./bin/update-project-dependencies'\'' file.\e[0m'
ERROR! hash mismatch between expected cabal.project and the one computed by cabal2stack.
Please update the hashes inside the './bin/update-project-dependencies' file.
+ exit 1
Cleaning up file based variables
ERROR: Job failed: exit code 1