Does setting "dynamic : false" on an index effect "_all" field?

Hi all,

I set "dynamic : false" on my index. Will this effect what is indexed under "_all" field.
Does it concatenate all values or only those that my static mapping specifies ?
I am new to elasticsearch. Any will be very helpful. Thanks.

-Harika.

It depends on your usage scenario:

  1. "dynamic": false, means the new fields which are not defined in the mapping will be ignored, "_all" will combine the terms of all the fields together to a new filed "_all" which the high level query (like query_string or match query) will based on.
  2. if you want the additional fields to be saved and queried in "_all", you will not make "dynamic" false, otherwise you could do this, make the "dynamic" false will not effect the original.

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