You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 21, 2021. It is now read-only.
The example shown in this chapter gives me an error
# this curl works
curl -XDELETE 'localhost:9200/my_store?pretty'# this gives me the error below
curl -XPUT 'localhost:9200/my_store?pretty' -H 'Content-Type: application/json' -d'{ "mappings" : { "products" : { "properties" : { "productID" : { "type" : "string", "index" : "not_analyzed" } } } }}'
error:
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "No handler for type [string] declared on field [productID]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping [products]: No handler for type [string] declared on field [productID]",
"caused_by" : {
"type" : "mapper_parsing_exception",
"reason" : "No handler for type [string] declared on field [productID]"
}
},
"status" : 400
}