# No handler for type \[attachment\] declared on field \[file\]

**URL:** <https://discuss.elastic.co/t/no-handler-for-type-attachment-declared-on-field-file/14349>\
**Category:** Elasticsearch\
**Created:** [November 11, 2013, 9:56am UTC](https://discuss.elastic.co/t/no-handler-for-type-attachment-declared-on-field-file/14349 "2013-11-11T09:56:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samaswin](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@samaswin](https://discuss.elastic.co/u/samaswin)\
**Post date:** [November 11, 2013, 9:56am UTC](https://discuss.elastic.co/t/no-handler-for-type-attachment-declared-on-field-file/14349/1 "2013-11-11T09:56:07Z")

</div>

Hi,  
I have installed the FSRiver and mapper attachments in my ES.  
I have run the following script, But it always showing No handler for type  
[attachment] declared on field [file] error.  
I try all the solutions from internet. But it's not working for me. Can any  
one help me.

The Example:

PUT:  
[http://localhost:9200/mydocs/](http://localhost:9200/mydocs/)  
{  
"doc": {  
"properties": {  
"file": {  
"type": "attachment",  
"path": "full",  
"fields": {  
"file": {  
"type": "string",  
"store": "yes",  
"term\_vector": "with\_positions\_offsets"  
}  
}  
}  
}  
}  
}

PUT:  
[http://localhost:9200/\_river/mydocs/\_meta](http://localhost:9200/_river/mydocs/_meta)  
{  
"type": "fs",  
"fs": {  
"url": "/home/likewise-open/ashwin\_raj/Desktop/Folder",  
"update\_rate": 900000,  
"includes": "_.doc,_.pdf",  
"excludes": "resume"  
}  
}

Actually my requirement is indexing the folder.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![samaswin](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@samaswin](https://discuss.elastic.co/u/samaswin)\
**Post date:** [November 11, 2013, 10:04am UTC](https://discuss.elastic.co/t/no-handler-for-type-attachment-declared-on-field-file/14349/2 "2013-11-11T10:04:52Z")

</div>

I found a bug, The mapper attachments not installed. Its showing a error,  
Installed mapper-attachments into  
/usr/share/elasticsearch/plugins/mapper-attachments  
Plugin installation assumed to be site plugin, but contains source code,  
aborting installation...

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![samaswin](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@samaswin](https://discuss.elastic.co/u/samaswin)\
**Post date:** [November 11, 2013, 10:15am UTC](https://discuss.elastic.co/t/no-handler-for-type-attachment-declared-on-field-file/14349/3 "2013-11-11T10:15:33Z")

</div>

I resolved the problem

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:07am UTC](https://discuss.elastic.co/t/no-handler-for-type-attachment-declared-on-field-file/14349/4 "2017-07-06T02:07:52Z")

</div>


