How to disable indexing of unmapped fileds?


(Bela Boros) #1

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


(Nik Everett) #2

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.


(system) #3