Include in all


(Brandon Hilkert) #1

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?


(Shay Banon) #2

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.comwrote:

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?


(Brandon Hilkert) #3

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.comwrote:

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?


(Shay Banon) #4

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.comwrote:

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.comwrote:

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?


(system) #5