Why we can not edit transform after creating

Hi every body!
I want to edit transform jobs after creation,
but according to the Elasticsearch documents, we can edit only some restricted fields.

is there a way to edit trasnform scripts? like group by section? or aggregation section?

thanks a lot,
best regards

That's not possible, because the group_by fields are used to create the document id's. This must be deterministic, because otherwise transform would not be able to update existing documents. The result would e.g. duplicated docs.

We could however relax this restriction for the aggregation section in future. If you use a script in the aggregation part you can use named scripts and change the script later.

What's the reason not to clone the transform instead? If you change essential parts like the group_by, it is conceptually a different transform.

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