Thanks for your response! I can reach out to them about Mapper Attachment plugin. I have installed that plugin in my local. But, I am unable to update the field type to attachment.
Here is how my index currently looks -
{
"took": 13,
"timed_out": false,
"_shards": {
"total": 14,
"successful": 14,
"failed": 0
},
"hits": {
"total": 172,
"max_score": 1,
"hits": [
{
"_index": "appindex",
"_type": "appindex",
"_id": "8",
"_score": 1,
"_source": {
"id": 8,
"body:format": "filtered_html",
"body:value": "text text text",
"changed": "1506460443",
...
"field_attachment_resource:file:fid": "12",
"field_attachment_resource:file:mime": "application/pdf",
"field_attachment_resource:file:name": "SampleDocument.pdf",
This is the current mapping of "field_attachement_resource":
{
"appindex" : {
"mappings" : {
"appindex" : {
"properties" : {
"field_attachment_resource:file:fid" : {
"type" : "string"
},
"field_attachment_resource:file:mime" : {
"type" : "string"
},
"field_attachment_resource:file:name" : {
"type" : "string"
},
I tried to update the type of "field_attachment_resource:file:name" from string to "attachment" -
curl -X PUT 'http://localhost:9200/appindex/appindex/_mapping?ignore_conflicts=true' -d \
'{
"field_attachment_resource": {
"properties": {
"name": {
"type": "attachment"
}
}
}
}'
It failed with this error -
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [field_attachment_resource : {properties={name={type=attachment}}}]"}],"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [field_attachment_resource : {properties={name={type=attachment}}}]"},"status":400}
Please advise on what I might be wrong. Thanks for your help!!!!