I currently use a Mapper Attachments type in my Elasticsearch 2.3 mapping and I try to migrate to Elasticsearch 5.0.0-beta3.
Unfortunatelly the plugin has been replaced by new Ingest Attachment Processor Plugin, which is not documented.
I read the documentation https://www.elastic.co/guide/en/elasticsearch/plugins/master/ingest-attachment.html and installed it but my Elasticsearch instance returns an error message when I create my new index mapping.
put /fs-rfi
put /fs-rfi/document/_mapping
{
"document" : {
"properties" : {
"file" : {
"type" : "attachment",
"fields" : {
"content" : {
"type" : "string",
"store" : true,
"term_vector" : "with_positions_offsets"
},
"title" : {"store" : "yes"},
"date" : {"store" : "yes"},
"author" : {"store" : "yes"},
"keywords" : {"store" : "yes"},
"content_type" : {"store" : "yes"},
"content_length" : {"store" : "yes"},
"language" : {"store" : "yes"}
}
},
"author" : { "type" : "string", "store" : true, "fields" : { "raw": {"type" : "string", "index" : "not_analyzed"} } },
"size" : { "type" : "integer", "store" : true },
"format" : { "type" : "string", "store" : true, "fields" : { "raw": {"type" : "string", "index" : "not_analyzed"} } },
"mimetype" : { "type" : "string", "store" : true },
"unc" : { "type" : "string", "store" : true, "fields" : { "raw": {"type" : "string", "index" : "not_analyzed"} } },
"keywords" : { "type" : "string", "store" : true },
"language" : { "type" : "string", "store" : true },
"name" : { "type" : "string", "store" : true, "fields" : { "raw": {"type" : "string", "index" : "not_analyzed"} } },
"title" : { "type" : "string", "store" : true, "fields" : { "raw": {"type" : "string", "index" : "not_analyzed"} } },
"lastupdate" : { "type" : "date", "format" : "yyyy-MM-dd HH:mm:ss.SSS", "store" : true },
"id" : {
"type" : "string"
}
}
}
}
return message:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "No handler for type [attachment] declared on field [file]"
}
],
"type": "mapper_parsing_exception",
"reason": "No handler for type [attachment] declared on field [file]"
},
"status": 400
}
Github is not documented.
Any idea?