Thank you! I get this new error now -
{"error":{"root_cause":[{"type":"index_already_exists_exception","reason":"already exists","index":"appindex"}],"type":"index_already_exists_exception","reason":"already exists","index":"appindex"},"status":400}
This is my new curl command -
curl -X POST "http://localhost:9200/appindex" -d '{
"mappings":{
"appindex":{
"_source":{
"excludes":[
"field_attachment_resource_name_base64"
]
},
"properties":{
"field_attachment_resource_name_base64":{
"type":"attachment",
"fields":{
"content":{
"type":"string",
"store":true
}
}
},
"name":{
"type":"string"
}
}
}
}
}'