You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: server/src/main/java/org/elasticsearch/action/admin/indices/template/post/TransportSimulateIndexTemplateAction.java
+23-3Lines changed: 23 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -361,9 +361,20 @@ public static Template resolveTemplate(
361
361
);
362
362
}
363
363
364
+
/**
365
+
* This method collects the mappings from the given template, pulling them from the given simulatedProject. If the template is a data
366
+
* stream template and the given dataStream is not null, this method also appends any mapping overrides from the data stream itself.
367
+
* @param simulatedProject Used to fetch the component templates referenced from the template
368
+
* @param dataStream Used to fetch any mappings explicitly set on the data stream
369
+
* @param template The template matching the index, used to fetch mappings
370
+
* @param indexName The name of the index whose templates we are fetching
371
+
* @param xContentRegistry Used to parse mappings if necessary
372
+
* @return A list of matching mappings in ascending priority order
0 commit comments