# Can Attachment type do not store base64 source?

**URL:** <https://discuss.elastic.co/t/can-attachment-type-do-not-store-base64-source/23651>\
**Category:** Elasticsearch\
**Created:** [May 20, 2015, 3:02am UTC](https://discuss.elastic.co/t/can-attachment-type-do-not-store-base64-source/23651 "2015-05-20T03:02:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shinyke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shinyke/32/587_2.png) [@shinyke](https://discuss.elastic.co/u/shinyke)\
**Post date:** [May 20, 2015, 3:02am UTC](https://discuss.elastic.co/t/can-attachment-type-do-not-store-base64-source/23651/1 "2015-05-20T03:02:30Z")

</div>

Hi,I'm a new to ES, our project is about email.

Recently, we try to index attachments with _Attachment Type_. What confused  
us is that Although we only need the content index, ES still store file's  
base64 string in \_source. I am afraid that this may cost a lot of hard disk  
space.

Is there some way to solve the problem？Is it possible to index content and  
discard base64 string？

Thanks,  
Shiny ke

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

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/6480f94e-0903-4e80-ba6a-d24dbb97e081%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6480f94e-0903-4e80-ba6a-d24dbb97e081%40googlegroups.com).  
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:13am UTC](https://discuss.elastic.co/t/can-attachment-type-do-not-store-base64-source/23651/2 "2017-07-06T00:13:14Z")

</div>


