映射和索引都如下:
PUT somki
{
"mappings": {
"_doc" : {
"properties" : {
"suggest" : {
"type" : "completion",
"contexts": [
{
"name": "userid",
"type": "category"
}
]
}
}
}
}
}
POST somki/_doc/
{
"suggest": {
"input": ["123","asb"],
"contexts": {
"userid": ["99568656541578","abhi"]
}
}
}
我有一个csv文件,其中包含四列和我想要输入的前两列的值以及剩余的两列值的值我想要放入userid,如上面的索引所示。我怎么能这样做?