Reindex with mapping of data

I am using high level NEST client for C# version 7.6.0.
I want to migrate existing data created in 5.2 to 7.6.0
I understand that I need to migrate to version 6.x (6.8) first.

The only thing I found was this:


 var reindexResponse = this.ElasticClient.ReindexOnServer(r => r
                        .Source(s => s
                            .Index(indexName)
                        )
                        .Destination(d => d
                            .Index(newIndexName)
                        ).Refresh(false)
                        .WaitForCompletion(true)
                    );

How could I do a mapping here? I want to modify the actual data set during reindexing, if possible. Otherwise I would have to do this afterwads.
What part is .Refresh() playing here? How would I tweak this for potentially large data sets?

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