# \_all and compress fields

**URL:** <https://discuss.elastic.co/t/-all-and-compress-fields/18609>\
**Category:** Elasticsearch\
**Created:** [July 11, 2014, 6:50pm UTC](https://discuss.elastic.co/t/-all-and-compress-fields/18609 "2014-07-11T18:50:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![IronMike](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@IronMike](https://discuss.elastic.co/u/IronMike)\
**Post date:** [July 11, 2014, 6:50pm UTC](https://discuss.elastic.co/t/-all-and-compress-fields/18609/1 "2014-07-11T18:50:29Z")

</div>

I am looking for ways to reduce index size,  
So I turned on compression, it helped a little but not much.

I did 2 more things that helped but not quite sure what the effects are:

- I turned off \_all field for all. What is the downside to this?

- I tuned off "store" field for "file" field, which handles text from  
binary files like pdfs..? Should the "store" field for attachments be ON if  
I need highlighting in my queries?

--  
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/51994e55-fba3-4968-b146-834f1ff97fba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/51994e55-fba3-4968-b146-834f1ff97fba%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [July 12, 2014, 5:23am UTC](https://discuss.elastic.co/t/-all-and-compress-fields/18609/2 "2014-07-12T05:23:38Z")

</div>

Hello ,

I believe the compression is enabled by default.  
Disabling \_all means that you wont be able to search on all fields  
together.  
That is in , query\_string , you will need to specify which field you want  
to query , else the search will give 0 results.  
This will certainly help in reducing the space.

I believe store is also disabled by default.  
For highlighting \_source is used if store is disabled , so it wont affect  
highlighting.

Thanks  
Vineeth

On Sat, Jul 12, 2014 at 12:20 AM, IronMike [sabdalla80@gmail.com](mailto:sabdalla80@gmail.com) wrote:

> I am looking for ways to reduce index size,  
> So I turned on compression, it helped a little but not much.
> 
> I did 2 more things that helped but not quite sure what the effects are:
> 
> - I turned off \_all field for all. What is the downside to this?
> 
> - I tuned off "store" field for "file" field, which handles text from  
> binary files like pdfs..? Should the "store" field for attachments be ON if  
> I need highlighting in my queries?
> 
> --  
> 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/51994e55-fba3-4968-b146-834f1ff97fba%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/51994e55-fba3-4968-b146-834f1ff97fba%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/51994e55-fba3-4968-b146-834f1ff97fba%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/51994e55-fba3-4968-b146-834f1ff97fba%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> 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/CAGdPd5%3DFq5gxLvHUv89F%3D8axKWcXXPTky1qo8ci3ZRjC7z3vdw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5%3DFq5gxLvHUv89F%3D8axKWcXXPTky1qo8ci3ZRjC7z3vdw%40mail.gmail.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, 1:16am UTC](https://discuss.elastic.co/t/-all-and-compress-fields/18609/3 "2017-07-06T01:16:20Z")

</div>


