我正试图绕过Elasticsearch并且我一直在遇到问题,我没有真正得到的问题,这似乎没有在任何地方记录......
我的文档包含一个名称,假设我可以使用import Data.Char
fromStringToList :: String -> [Int]
fromStringToList "" = []
fromStringToList myString = map ord myString
{-
changeB3
PRE: True
POST: every Int that can be divided by 3 is multiplied by 2 and
kept as int, otherwise transformed to char
-}
changeB3 :: [Int] -> String
changeB3 [] = ""
changeB3 (x:xs)
| x `mod ` 3 == 0 = show map (x * 2 ) ++ changeB3 xs
|otherwise = map chr x ++ changeB3 xs
如果名称有空格“名字姓氏”,那该怎么办?我尝试了很多不同的方法,但似乎都没有。
显然不像_search?q=doc.name:Name
那么容易
...将查询姓名和姓氏,但不一定按特定顺序查询。