1
我通過瀏覽器插件感執行彈性搜索以下要求:執行多個請求彈性搜索
DELETE /state
PUT /state
PUT /state/mapping/_mapping
{
"state" : {
"index_analyzer" : "angram",
"search_analyzer" : "standard",
"properties" : {
"stateName": {
"type" : "multi_field",
"fields": {
"stateName":{
"type":"string"
},
"untouched":{
"type" : "string","index" :"not_analyzed"
}
}
},
"countryName":
{
"type" : "multi_field",
"fields": {
"countryName":{
"type":"string"
},
"untouched":{
"type" : "string","index" :"not_analyzed"
}
}
}
}
}
}
DELETE /_river/state
PUT /_river/state/_meta
{
"type": "mongodb",
"mongodb": {
"db": "rakeshdb",
"collection": "state"
},
"index": {
"name": "state",
"type": "mapping"
}
}
我不得不執行每個DELETE和分別PUT請求。無論如何要一次性執行完整的腳本。
請讓我知道你得到的答案是否有用? – javanna