Skip to content

Commit

Permalink
Address Luca's feedback 2
Browse files Browse the repository at this point in the history
  • Loading branch information
mayya-sharipova committed Aug 12, 2022
1 parent 1ee4270 commit dbf2022
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,11 @@ final ObjectMapper getDynamicObjectMapper(String name) {

/**
* Add a new runtime field dynamically created while parsing.
* We use the same set for both new indexed and new runtime fields,
* because for dynamic mappings, a new field can be either mapped
* as runtime or indexed, but never both.
*/
public final void addDynamicRuntimeField(RuntimeField runtimeField) {
final void addDynamicRuntimeField(RuntimeField runtimeField) {
if (newFieldsSeen.add(runtimeField.name())) {
mappingLookup.checkFieldLimit(indexSettings().getMappingTotalFieldsLimit(), newFieldsSeen.size());
}
Expand Down

0 comments on commit dbf2022

Please sign in to comment.