Can we index and store fields that is present only in the mapping?

I have a mapping which contains fields id, name and I index the document with fields id,name and age. Is it possible to limit only id and name and not age

You can configure dynamic field mapping to either ignore new fields (so they are not searchable) or even to reject a document that contains fields, which are not in the mapping. See

https://www.elastic.co/guide/en/elasticsearch/reference/5.5/dynamic-field-mapping.html

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