How to delete multiple fields with the same name when Reindexing

Hi,

We have reached the maximum fields limit on an index and after doing some research it looks like the best way to get rid of the unneeded fields we need to reindex.

Specifically we have many fields called activity.info, activity.arguments, activity.input etc.

is there a way to delete all fields that contain activity at the start without having to manually type out the name of each specific one when doing the reindex?

I am not sure if painless supports wildcards like "script" : "ctx._source.remove('activity.*')".

You might be able to use Reindex API | Elasticsearch Guide [7.15] | Elastic to drop those fields.

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