We're migrating to ES7, and for one of our indexes which stores email data we are hitting the "Limit of total fields " error.
The reason for this is we're indexing all headers, and for some emails the number of headers in addition to the standard fields exceeds 1000.
What I'd prefer to do is set up the headers field so that ES simply ignores any properties received over a number I configure. So for example, I'd want to limit the number of headers to the first 100 that ES encounters and have it quietly ignore the rest, maybe logging a warning in the task.
For future data we could restrict the number of fields at index time, but we want to be able to reindex existing documents from another cluster without regenerating all the documents - which is an expensive task.
I haven't been able to find anything that allows me to configure a particular property that limits the fields beneath it. Is there anything like that?