on master help sign in
Fixed #99
759a2cbiko
denis/src/Data/Query.hs+5−3
@@ -517,7 +517,7 @@ getFacultySearchResultQ = selectStar (from (table #faculties) &
517 #facultyPath,
517 #facultyPath,
518 #facultyCampusName,
518 #facultyCampusName,
519 (arrayToText #facultyTags)])
519 (arrayToText #facultyTags)])
520− query = tsQuery (param @1)
520+ query = tsQuery "russian" (param @1)
521
521
522tsRankCd
522tsRankCd
523 :: Expression schema from grouping params ('NotNull 'PGtext)
523 :: Expression schema from grouping params ('NotNull 'PGtext)
@@ -534,9 +534,11 @@ tsVector lang x = UnsafeExpression $
534 "to_tsvector" <> parenthesized (commaSeparated [singleQuotedUtf8 lang, renderExpression x])
534 "to_tsvector" <> parenthesized (commaSeparated [singleQuotedUtf8 lang, renderExpression x])
535
535
536tsQuery
536tsQuery
537+ :: ByteString -- ^ Language
537− :: Expression schema from grouping params ('NotNull 'PGtext)
538+ -> Expression schema from grouping params ('NotNull 'PGtext)
538 -> Expression schema from grouping params ('NotNull 'PGtext)
539 -> Expression schema from grouping params ('NotNull 'PGtext)
539−tsQuery = unsafeFunction "to_tsquery"
540+tsQuery lang x = UnsafeExpression $
541+ "to_tsquery" <> parenthesized (commaSeparated [singleQuotedUtf8 lang, renderExpression x])
540
542
541arrayToText
543arrayToText
542 :: Expression schema from grouping params ('NotNull ('PGvararray ('NotNull 'PGtext)))
544 :: Expression schema from grouping params ('NotNull ('PGvararray ('NotNull 'PGtext)))