# Include\_in\_all still works or not?

**URL:** <https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092>\
**Category:** Elasticsearch\
**Created:** [October 26, 2018, 5:14am UTC](https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092 "2018-10-26T05:14:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pranav24](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@pranav24](https://discuss.elastic.co/u/pranav24)\
**Post date:** [October 26, 2018, 5:14am UTC](https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092/1 "2018-10-26T05:14:15Z")

</div>

Hi All,

In my use case of Elasticsearch for my project, for free\_text\_search I want search to be done on not all field and I also not want to send list of field on search is to be done because I have almost 100 fields and free\_text\_search should work on approx 80 field.

In earlier version of Elasticsearch below 6.0.0, include\_in\_all can be set to false, which removes that field from default search when no field is mentioned in search.  
I tried using include\_in\_all but it's not working.

Can anybody share the way to properly use include\_in\_all or any alternative which works same.

My Elasticsearch version-6.3.2

---

<div class="post-metadata">

**Author:** ![pranav24](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@pranav24](https://discuss.elastic.co/u/pranav24)\
**Post date:** [October 26, 2018, 10:17am UTC](https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092/2 "2018-10-26T10:17:15Z")

</div>

@elastic Can you please answer my query?

---

<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:** [October 26, 2018, 10:27am UTC](https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092/3 "2018-10-26T10:27:51Z")

</div>

Read [this](https://discuss.elastic.co/t/about-the-elasticsearch-category/21) and specifically the "Also be patient" part.

It's fine to answer on your own thread after 2 or 3 days (not including weekends) if you don't have an answer.

---

<div class="post-metadata">

**Author:** ![pranav24](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@pranav24](https://discuss.elastic.co/u/pranav24)\
**Post date:** [November 21, 2018, 6:47am UTC](https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092/4 "2018-11-21T06:47:58Z")

</div>

@dadoonet Can I get any possible solutions now? Or is it too early?

---

<div class="post-metadata">

**Author:** ![mjunaidmuzammil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjunaidmuzammil/32/56910_2.png) [@mjunaidmuzammil](https://discuss.elastic.co/u/mjunaidmuzammil)\
**Post date:** [November 21, 2018, 6:55am UTC](https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092/5 "2018-11-21T06:55:11Z")

</div>

You can create custom `_all` field for your use case. Use `copy_to` parameter in your mappings for adding those fields to custom \_all field. By default, they will not be added in contrast to pre ES 6.0. More details can be found [here](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/copy-to.html)

---

<div class="post-metadata">

**Author:** ![pranav24](https://avatars.discourse-cdn.com/v4/letter/p/b19c9b/32.png) [@pranav24](https://discuss.elastic.co/u/pranav24)\
**Post date:** [November 21, 2018, 7:28am UTC](https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092/6 "2018-11-21T07:28:30Z")

</div>

thanks for the response.  
I have already tried your method but the issue with it is, I have around 80-100 fields and about 50,000 documents. Each field has been custom analyzed. The index size increases more than three times. Is there any other method that can be employed which doesn't increase my index size?

---

<div class="post-metadata">

**Author:** ![mjunaidmuzammil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mjunaidmuzammil/32/56910_2.png) [@mjunaidmuzammil](https://discuss.elastic.co/u/mjunaidmuzammil)\
**Post date:** [November 21, 2018, 8:00am UTC](https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092/7 "2018-11-21T08:00:14Z")

</div>

Can you share mappings for your index?

---

<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:** [December 19, 2018, 8:00am UTC](https://discuss.elastic.co/t/include-in-all-still-works-or-not/154092/8 "2018-12-19T08:00:14Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
