This repository was archived by the owner on Sep 21, 2021. It is now read-only.
This repository was archived by the owner on Sep 21, 2021. It is now read-only.
A mapping example from the doc, gives mapper_parsing_exception
error #766
Open
Description
Hi.
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
}
May be the docs outdated?
Many thanks.
Metadata
Metadata
Assignees
Labels
No labels