Commit 2a45a454 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[search] fix for plainto_tsquery for docs search

This is because to_tsquery doesn't work with multiple words not
separated by AND or OR.
parent 7061b3f6
Pipeline #1969 failed with stage
in 37 minutes and 23 seconds
......@@ -360,7 +360,7 @@ viewDocuments cId t ntId mQuery = proc () -> do
restrict -< if query == ""
then pgBool True
--else (n^.ns_search) @@ (pgTSQuery (T.unpack query))
else (n^.ns_search) @@ (toTSQuery $ T.unpack query)
else (n^.ns_search) @@ (plaintoTSQuery $ T.unpack query)
returnA -< FacetDoc (_ns_id n)
(_ns_date n)
......
......@@ -44,7 +44,7 @@ extra-deps:
# Databases libs
- git: https://github.com/delanoe/haskell-opaleye.git
commit: 806da7f9fb6fe1032f51c1822fc224b281cdd84f
commit: d3ab7acd5ede737478763630035aa880f7e34444
- git: https://github.com/delanoe/hsparql.git
commit: 308c74b71a1abb0a91546fa57d353131248e3a7f
- git: https://github.com/robstewart57/rdf4h.git
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment