# Include in all

**URL:** <https://discuss.elastic.co/t/include-in-all/7765>\
**Category:** Elasticsearch\
**Created:** [May 18, 2012, 6:06pm UTC](https://discuss.elastic.co/t/include-in-all/7765 "2012-05-18T18:06:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brandon\_Hilkert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_hilkert/32/2182_2.png) [@Brandon\_Hilkert](https://discuss.elastic.co/u/Brandon_Hilkert)\
**Post date:** [May 18, 2012, 6:06pm UTC](https://discuss.elastic.co/t/include-in-all/7765/1 "2012-05-18T18:06:37Z")

</div>

I'm using the Ruby gem Tire to communicate with ElasticSearch. I have setup  
a mapping for my users index. However, I want certain fields to be excluded  
from the "\_all" field so that that field doesn't creep into my results. I'm  
using the setting "include\_in\_all", but for some fields it doesn't seem to  
be honoring that.

Is there a command like "\_mapping" where I can either view the \_all field,  
or see which fields go into it on the server side?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 20, 2012, 8:29pm UTC](https://discuss.elastic.co/t/include-in-all/7765/2 "2012-05-20T20:29:49Z")

</div>

Yes, you can issue a get mapping API and see how things are "actually"  
mapped on ES side.

On Fri, May 18, 2012 at 8:06 PM, Brandon Hilkert [brandon@meeteor.com](mailto:brandon@meeteor.com)wrote:

> I'm using the Ruby gem Tire to communicate with Elasticsearch. I have  
> setup a mapping for my users index. However, I want certain fields to be  
> excluded from the "\_all" field so that that field doesn't creep into my  
> results. I'm using the setting "include\_in\_all", but for some fields it  
> doesn't seem to be honoring that.
> 
> Is there a command like "\_mapping" where I can either view the \_all field,  
> or see which fields go into it on the server side?

---

<div class="post-metadata">

**Author:** ![Brandon\_Hilkert](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_hilkert/32/2182_2.png) [@Brandon\_Hilkert](https://discuss.elastic.co/u/Brandon_Hilkert)\
**Post date:** [May 21, 2012, 1:16pm UTC](https://discuss.elastic.co/t/include-in-all/7765/3 "2012-05-21T13:16:07Z")

</div>

I'm familiar with the \_mapping API, however, it doesn't show the \_all field  
which is what I was curious about. Is there another way to see it or see  
what it mapped to it?

On Sunday, May 20, 2012 4:29:49 PM UTC-4, kimchy wrote:

> Yes, you can issue a get mapping API and see how things are "actually"  
> mapped on ES side.
> 
> On Fri, May 18, 2012 at 8:06 PM, Brandon Hilkert [brandon@meeteor.com](mailto:brandon@meeteor.com)wrote:
> 
> > I'm using the Ruby gem Tire to communicate with Elasticsearch. I have  
> > setup a mapping for my users index. However, I want certain fields to be  
> > excluded from the "\_all" field so that that field doesn't creep into my  
> > results. I'm using the setting "include\_in\_all", but for some fields it  
> > doesn't seem to be honoring that.
> > 
> > Is there a command like "\_mapping" where I can either view the \_all  
> > field, or see which fields go into it on the server side?

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 23, 2012, 9:35pm UTC](https://discuss.elastic.co/t/include-in-all/7765/4 "2012-05-23T21:35:42Z")

</div>

The \_mapping API should show the \_all field, if it doesn't show it, it  
means that it uses the defaults (i.e. was not set).

On Mon, May 21, 2012 at 3:16 PM, Brandon Hilkert [brandon@meeteor.com](mailto:brandon@meeteor.com)wrote:

> I'm familiar with the \_mapping API, however, it doesn't show the \_all  
> field which is what I was curious about. Is there another way to see it or  
> see what it mapped to it?
> 
> On Sunday, May 20, 2012 4:29:49 PM UTC-4, kimchy wrote:
> 
> > Yes, you can issue a get mapping API and see how things are "actually"  
> > mapped on ES side.
> > 
> > On Fri, May 18, 2012 at 8:06 PM, Brandon Hilkert [brandon@meeteor.com](mailto:brandon@meeteor.com)wrote:
> > 
> > > I'm using the Ruby gem Tire to communicate with Elasticsearch. I have  
> > > setup a mapping for my users index. However, I want certain fields to be  
> > > excluded from the "\_all" field so that that field doesn't creep into my  
> > > results. I'm using the setting "include\_in\_all", but for some fields it  
> > > doesn't seem to be honoring that.
> > > 
> > > Is there a command like "\_mapping" where I can either view the \_all  
> > > field, or see which fields go into it on the server side?

---

<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, 3:27am UTC](https://discuss.elastic.co/t/include-in-all/7765/5 "2017-07-06T03:27:28Z")

</div>


