parentheses m)
This commit is contained in:
parent
7590fa0fd7
commit
ed3553eb13
1 changed files with 2 additions and 2 deletions
|
@ -33,9 +33,9 @@ getSearchR = do
|
||||||
case res of
|
case res of
|
||||||
FormSuccess query -> do
|
FormSuccess query -> do
|
||||||
mediumList <- runDB $ do
|
mediumList <- runDB $ do
|
||||||
a <- rawSql "select ?? from medium where ? % any(string_to_array(title, ' ');"
|
a <- rawSql "select ?? from medium where ? % any(string_to_array(title, ' '))"
|
||||||
[PersistText query]
|
[PersistText query]
|
||||||
b <- rawSql "select ?? from medium where ? % any(string_to_array(description, ' ');"
|
b <- rawSql "select ?? from medium where ? % any(string_to_array(description, ' '))"
|
||||||
[PersistText query]
|
[PersistText query]
|
||||||
return $ sortBy (\ sa sb -> compare
|
return $ sortBy (\ sa sb -> compare
|
||||||
(T.unpack $ mediumTitle $ entityVal sa)
|
(T.unpack $ mediumTitle $ entityVal sa)
|
||||||
|
|
Loading…
Reference in a new issue