我试图在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' –