How to disable indexing of unmapped fileds?

Can you help me?

I would like to use unmapped fields (ie documents may contain fields not mentioned in mapping), but there will be many and I dont want to index them. Also I will not search based on the unmapped fields.

How can I disable indexing of unmapped (dynamically added) fields?

Thanks,
Béla

Have a look here. Basically you set "dynamic": "false". There is also a "dynamic": "strict" to throw an error on unmapped fields if you want to do that at some point.