How to disable the default index mapping and index documents based on explicit mapping

The problem statement is this:

i want to index documents based only on the fields that i define in my explicit mapping configuration while creating an index.

i can see that even if i pass my own index mapping for specific fields, all the fields are getting indexed.

i thought dynamic : false might be helpful but from the docs, it's only relevant in case of new fields

please explain if there's a way to achieve this.

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