# Mapper attachment not working

**URL:** <https://discuss.elastic.co/t/mapper-attachment-not-working/32681>\
**Category:** Elasticsearch\
**Created:** [October 21, 2015, 3:08pm UTC](https://discuss.elastic.co/t/mapper-attachment-not-working/32681 "2015-10-21T15:08:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![billiblu](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@billiblu](https://discuss.elastic.co/u/billiblu)\
**Post date:** [October 21, 2015, 3:08pm UTC](https://discuss.elastic.co/t/mapper-attachment-not-working/32681/1 "2015-10-21T15:08:11Z")

</div>

Hi,

I am tryng a very simple code to search on attachment file but I have no result for my query.  
To semplify my test I have replicate exactly the code on the plugin page:

> **[elastic/elasticsearch-mapper-attachments](https://github.com/elastic/elasticsearch-mapper-attachments)**
>
> elasticsearch-mapper-attachments - Mapper Attachments Type plugin for Elasticsearch

I follow step by step the code on "Querying or accessing metadata" paragraph but it doesn't return any match.

The plugin is correctly installed and a simple \_search in the index works (I see Base64 file).

Can you help me?

Thanks  
Davide

---

<div class="post-metadata">

**Author:** ![billiblu](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@billiblu](https://discuss.elastic.co/u/billiblu)\
**Post date:** [October 21, 2015, 8:25pm UTC](https://discuss.elastic.co/t/mapper-attachment-not-working/32681/2 "2015-10-21T20:25:14Z")

</div>

Solved!  
The version of mapper-attachment plugin was wrong!

---

<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 5, 2017, 11:43pm UTC](https://discuss.elastic.co/t/mapper-attachment-not-working/32681/3 "2017-07-05T23:43:26Z")

</div>


