Include_in_all option being ignored


(Nick Hoffman) #1

Hi guys. In a dynamic template, I've got a multi_field field with 2 fields:
"{name}", and "analyzed". The "analyzed" field is configured to be included
in _all . However, after indexing a document the "analyzed" field is
configured to not be included in _all .

I've written up a quick gist with the curl commands here:

Any idea what's going on?

Thanks,
Nick


(Shay Banon) #2

In multi field mapping, only the "main" filed can be included in all (or not), the others are really not relevant (since its the same text that gets added to all). Note, the _all field has its own analyzer.

On Tuesday, January 31, 2012 at 2:53 AM, Nick Hoffman wrote:

Hi guys. In a dynamic template, I've got a multi_field field with 2 fields: "{name}", and "analyzed". The "analyzed" field is configured to be included in _all . However, after indexing a document the "analyzed" field is configured to not be included in _all .

I've written up a quick gist with the curl commands here:
https://gist.github.com/614309d5473552732379

Any idea what's going on?

Thanks,
Nick


(Nick Hoffman) #3

On Tuesday, 31 January 2012 12:10:54 UTC-5, kimchy wrote:

In multi field mapping, only the "main" filed can be included in all (or
not), the others are really not relevant (since its the same text that gets
added to all). Note, the _all field has its own analyzer.

Ah, that'd explain it! Thanks for that.


(system) #4