# Mapper Attachment: content not decoded

**URL:** <https://discuss.elastic.co/t/mapper-attachment-content-not-decoded/20771>\
**Category:** Elasticsearch\
**Created:** [November 17, 2014, 5:53am UTC](https://discuss.elastic.co/t/mapper-attachment-content-not-decoded/20771 "2014-11-17T05:53:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tudit](https://avatars.discourse-cdn.com/v4/letter/t/bcef8e/32.png) [@tudit](https://discuss.elastic.co/u/tudit)\
**Post date:** [November 17, 2014, 5:53am UTC](https://discuss.elastic.co/t/mapper-attachment-content-not-decoded/20771/1 "2014-11-17T05:53:05Z")

</div>

I followed the steps in this tutorial:

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

I am unable to GET text that is in decoded format. For example:  
"file":  
"IkdvZCBTYXZlIHRoZSBRdWVlbiIgKGFsdGVybmF0aXZlbHkgIkdvZCBTYXZlIHRoZSBLaW5nIg=="

should be decoded to "God Save the Queen" (alternatively "God Save the  
King" but I am getting the same encoded content under \_source. I cannot see  
the fields even after storing them. Where have I gone wrong?

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/15ae700c-ce11-434a-a59d-31381693fae2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15ae700c-ce11-434a-a59d-31381693fae2%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 17, 2014, 5:57am UTC](https://discuss.elastic.co/t/mapper-attachment-content-not-decoded/20771/2 "2014-11-17T05:57:02Z")

</div>

You are looking into the \_source field which is not modified by elasticsearch.  
You need to ask for your stored field at search time. Have a look at fields option in search API.

David

> Le 17 nov. 2014 à 06:53, tudit [udittumuluri@gmail.com](mailto:udittumuluri@gmail.com) a écrit :
> 
> I followed the steps in this tutorial:  
> [GitHub - elastic/elasticsearch-mapper-attachments at v2.3.2](https://github.com/elasticsearch/elasticsearch-mapper-attachments/tree/v2.3.2/#version-232-for-elasticsearch-13)
> 
> I am unable to GET text that is in decoded format. For example:  
> "file": "IkdvZCBTYXZlIHRoZSBRdWVlbiIgKGFsdGVybmF0aXZlbHkgIkdvZCBTYXZlIHRoZSBLaW5nIg=="
> 
> ## should be decoded to "God Save the Queen" (alternatively "God Save the King" but I am getting the same encoded content under \_source. I cannot see the fields even after storing them. Where have I gone wrong?
> 
> 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).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/15ae700c-ce11-434a-a59d-31381693fae2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/15ae700c-ce11-434a-a59d-31381693fae2%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/C317D66B-0BAD-4B1D-8B79-7F76C133B48E%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/C317D66B-0BAD-4B1D-8B79-7F76C133B48E%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:49am UTC](https://discuss.elastic.co/t/mapper-attachment-content-not-decoded/20771/3 "2017-07-06T00:49:43Z")

</div>

Closed on July 6, 2017, 12:49am UTC


