# Field compression question

**URL:** https://discuss.elastic.co/t/field-compression-question/39332
**Category:** Elasticsearch
**Created:** [January 15, 2016, 2:00pm UTC](https://discuss.elastic.co/t/field-compression-question/39332 "2016-01-15T14:00:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jbalaguero](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jbalaguero](https://discuss.elastic.co/u/jbalaguero)
#### Post date: [January 15, 2016, 2:00pm UTC](https://discuss.elastic.co/t/field-compression-question/39332/1 "2016-01-15T14:00:02Z")

</div>

Hi,

I have an index with 3 fields, one long not\_analysed, and 2 string not indexed. One of these strings contains big xml documents. The another string is the name of its encoding.

The xml document comes compressed with gzip from another webservice. Now I'm converting this compressed xml to a Base64 string before indexing the json into elasticsearch.

With these conditions, is it worth to disable compression on this index to avoid ES compressing something that is already compressed? If so, is this possible? (I see that now compression enabled is set by default but I don't see any way to disable it at index level).

Thanks.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [January 17, 2016, 10:22am UTC](https://discuss.elastic.co/t/field-compression-question/39332/2 "2016-01-17T10:22:25Z")

</div>

I don't think you can disable compression at all as of 2.X.

---

<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:23pm UTC](https://discuss.elastic.co/t/field-compression-question/39332/3 "2017-07-05T23:23:47Z")

</div>


