我尝试向索引添加类型,如下所示:
PUT /catalog/_mapping/product
{
"properties": {
"name": {
"type":"text"
}
}
}
Run Code Online (Sandbox Code Playgroud)
在回答中我得到一个错误:
{
"error" : "no handler found for uri [/catalog/_mapping/product?pretty=true] and method [PUT]"
}
Run Code Online (Sandbox Code Playgroud)
CURL 中也有同样的情况。我该如何修复它?