Hello,
I am having trouble using the Mapper attachment with ES. I am trying to use the mapper attachment to create a mapping corresponding to the MongoDB collection where my GridFS files are. I am using the mongo-connector to connect ES and Mongodb.
My problem is that I am trying trying to use the Gridfs support through following this small tutorial:https://github.com/mongodb-labs/mongo-connector/wiki/Usage%20with%20ElasticSearch
This is the mapping that I am trying to create:
curl -XPUT --noproxy '*' http://localhost:9201/project_fs/collection.fs/_mapping -d ' {
"fs": {
"properties": {
"content_type": {"type": "attachment"}
}}}'
This is the error that it is creating:
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [fs : {properties={content_type {type=attachment}}}]"}],"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [fs : {properties={content_type={type=attachment}}}]"},"status":400}
I am using ES 2.1.2 and the mapper-attachment (3.1.2) plugin is installed .
Thanks,
AJ