我試圖在elasticsearch中滲透查詢,但創建一個索引,如docs中所解釋的,我遇到了一個錯誤。我跑了以下內容:創建percolate查詢的索引
PUT /my_percolate_index
{
"mappings": {
"doctype": {
"properties": {
"message": {
"type": "text"
}
}
},
"queries": {
"properties": {
"query": {
"type": "percolator"
}
}
}
}
}
我笑臉相迎以下錯誤:
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [my_percolate_index] as the final mapping would have more than 1 type: [doctype, queries]"
}
],
"type": "illegal_argument_exception",
"reason": "Rejecting mapping update to [my_percolate_index] as the final mapping would have more than 1 type: [doctype, queries]"
},
"status": 400
}
這裏我錯過什麼?
您使用的是哪個版本的ES? – Val
'ES 6.0.0-alpha1'和'NEST 6.0.0-alpha1' –