# Compressing is not working perfectly

**URL:** <https://discuss.elastic.co/t/compressing-is-not-working-perfectly/17581>\
**Category:** Elasticsearch\
**Created:** [May 19, 2014, 4:09am UTC](https://discuss.elastic.co/t/compressing-is-not-working-perfectly/17581 "2014-05-19T04:09:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jihyun\_suh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jihyun_suh/32/1551_2.png) [@jihyun\_suh](https://discuss.elastic.co/u/jihyun_suh)\
**Post date:** [May 19, 2014, 4:09am UTC](https://discuss.elastic.co/t/compressing-is-not-working-perfectly/17581/1 "2014-05-19T04:09:30Z")

</div>

I want to test the compression of elastic search. But I think it is not  
working perfectly.  
Someone knows about the compression?

1. 

- tokenizer : standard

- index compression : not use

- size of index : 2.78G

- tokenizer : standard

- index compression : use

- size of index : 3.00G

- tokenizer : standard

- source compression : use

- size of index : 3.01G

1. 

- tokenizer : n-gram(2-5level)

- index compression : not use

- size of index : 7.89G

- tokenizer : n-gram(2-5level)

- index compression : use

- size of index : 8.01G

please help me...

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/compressing-is-not-working-perfectly-tp4056057.html](http://elasticsearch-users.115913.n3.nabble.com/compressing-is-not-working-perfectly-tp4056057.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

--  
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/1400472570386-4056057.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1400472570386-4056057.post%40n3.nabble.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [May 20, 2014, 9:14am UTC](https://discuss.elastic.co/t/compressing-is-not-working-perfectly/17581/2 "2014-05-20T09:14:46Z")

</div>

Hi,

What version of Elasticsearch are you using and how do you enable/disable  
compression?

On Mon, May 19, 2014 at 6:09 AM, jihyun suh [jhsuh.ourlight@gmail.com](mailto:jhsuh.ourlight@gmail.com)wrote:

> I want to test the compression of Elasticsearch. But I think it is not  
> working perfectly.  
> Someone knows about the compression?
> 
> 1. 
> 
> - tokenizer : standard
> 
> - index compression : not use
> 
> - size of index : 2.78G
> 
> - tokenizer : standard
> 
> - index compression : use
> 
> - size of index : 3.00G
> 
> - tokenizer : standard
> 
> - source compression : use
> 
> - size of index : 3.01G
> 
> 1. 
> 
> - tokenizer : n-gram(2-5level)
> 
> - index compression : not use
> 
> - size of index : 7.89G
> 
> - tokenizer : n-gram(2-5level)
> 
> - index compression : use
> 
> - size of index : 8.01G
> 
> please help me...
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/compressing-is-not-working-perfectly-tp4056057.html](http://elasticsearch-users.115913.n3.nabble.com/compressing-is-not-working-perfectly-tp4056057.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> 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/1400472570386-4056057.post%40n3.nabble.com](https://groups.google.com/d/msgid/elasticsearch/1400472570386-4056057.post%40n3.nabble.com)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
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/CAL6Z4j6pWMxDq-Qw1oc1DEiP0Gud1eENssv3\_fVC\_uyrOZbcAw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6pWMxDq-Qw1oc1DEiP0Gud1eENssv3_fVC_uyrOZbcAw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jihyun\_suh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jihyun_suh/32/1551_2.png) [@jihyun\_suh](https://discuss.elastic.co/u/jihyun_suh)\
**Post date:** [May 21, 2014, 1:43am UTC](https://discuss.elastic.co/t/compressing-is-not-working-perfectly/17581/3 "2014-05-21T01:43:03Z")

</div>

= version of Elasticsearch  
1.1.1

= how do you enable/disable compression?

- index compression enable =\> index.store.compress.stored : true

- index compression disable =\> default or index.store.compress.stored : false

- \_source compression enable =\> default or "\_source" : { "compress" : true }

- \_source compression disable =\> "\_source" : { "compress" : false }

= about \_source compression :  
I got some answer about \_source compression from expert of elastic search.  
He said that "source compression works, but it only make sense for really large docs, since there is already block compression on Lucene level. You should not turn it on 99% of the time".

---

<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, 1:28am UTC](https://discuss.elastic.co/t/compressing-is-not-working-perfectly/17581/4 "2017-07-06T01:28:01Z")

</div>


