@@ -974,7 +974,14 @@ rowToUser UserRow{..} = User {
976queryFromText :: Text -> Text
976queryFromText :: Text -> Text
977−queryFromText = T.unwords . L.intersperse "&" . map (`T.append` ":*") . filter (not . T.null) . T.split (not . isAlphaNum)
977+queryFromText = T.unwords . L.intersperse "&" . map processTerm . filter (not . T.null) . T.split (not . isAlphaNum)
979+ processTerm :: Text -> Text
980+ processTerm t = "(" <> t <> ":*" <> (
982+ then (" | (" <>) . (<> ")") . T.unwords . L.intersperse "<->" . map (<> ":*") . map T.singleton . T.unpack $ t
979directionToOperator
986directionToOperator
980 :: P.PaginationDirection
987 :: P.PaginationDirection