Skip to content

Commit

Permalink
When the 'strict' mapping option is enabled, make sure to validate sp…
Browse files Browse the repository at this point in the history
…lit_queries_on_whitespace.
  • Loading branch information
jtibshirani committed Jun 4, 2018
1 parent 0cfa12f commit c3d4005
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ public void checkCompatibility(MappedFieldType otherFT, List<String> conflicts,
if (Objects.equals(normalizer, other.normalizer) == false) {
conflicts.add("mapper [" + name() + "] has different [normalizer]");
}
if (strict) {
if (splitQueriesOnWhitespace != other.splitQueriesOnWhitespace) {
conflicts.add("mapper [" + name() + "] is used by multiple types. Set update_all_types" +
" to true to update [split_queries_on_whitespace] across all types.");
}
}
}

@Override
Expand Down

0 comments on commit c3d4005

Please sign in to comment.