Is there any way to update documents using the ingest pipeline?

xef
Sun, 31 Aug 2025 12:17:43 +0000
Elasticsearch

We are using NEST and using the Ingest Pipeline when indexing a new document as follows:

await ElasticSearchConfig.GetClient().IndexAsync(o, idx => idx.Index($"{index}-{user.Country.ToLower()}").Pipeline("agent-pipeline"));

But we cannot find a way of using the Pipline when updating a document such as:

await ElasticSearchConfig.GetClient().UpdateAsync (user.Id, u => u

.Index($"{index}-{user.ToLower()}")
.Doc(o)
.Refresh(Elasticsearch.Net.Refresh.True)
);

Also, does one need to delete the Pipeline when finished?

Would appreciate any assistance.

3 posts - 2 participants