Skip to content

Commit c9efcb7

Browse files
committed
Reindex: black list additional index settings that cannot be copied over
1 parent b70f502 commit c9efcb7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Nest/Document/Multiple/Reindex/ReindexObservable.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,11 @@ private void CreateIndex(string resolvedFrom, string resolvedTo)
105105
var originalIndexSettings = this._client.GetIndex(resolvedFrom);
106106
var originalIndexState = originalIndexSettings.Indices[resolvedFrom];
107107

108-
// work around https://github.com/elastic/elasticsearch/issues/21096
108+
// Black list internal settings that cannot be copied over
109+
// See https://github.com/elastic/elasticsearch/issues/21096
109110
originalIndexState.Settings.Remove("index.provided_name");
111+
originalIndexState.Settings.Remove("index.creation_date");
112+
originalIndexState.Settings.Remove("index.version.created");
110113

111114
var createIndexRequest = this._reindexRequest.CreateIndexRequest ?? new CreateIndexRequest(resolvedTo, originalIndexState);
112115
var createIndexResponse = this._client.CreateIndex(createIndexRequest);

0 commit comments

Comments
 (0)