Skip to content

Commit

Permalink
fix(index): add missing removed field case to incompatible change...
Browse files Browse the repository at this point in the history
...detection during mapping migration
  • Loading branch information
cmark committed Nov 29, 2022
1 parent 21b5b83 commit 45f622d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void create() {
JsonDiff.diff(currentTypeMapping, newTypeMapping).forEach(change -> {
if (change.isAdd()) {
compatibleChanges.add(change.getFieldPath());
} else if (change.isMove() || change.isReplace()) {
} else if (change.isRemove() || change.isMove() || change.isReplace()) {
incompatibleChanges.add(change.getFieldPath());
}
});
Expand Down

0 comments on commit 45f622d

Please sign in to comment.