Removes not relevant part of the bw compat test.

This commit is contained in:
Jim Ferenczi 2015-12-30 03:54:26 +01:00
parent 81fd2169cf
commit d898c0a6b0
1 changed files with 1 additions and 2 deletions

View File

@ -460,8 +460,7 @@ public class TypeParsers {
}
private static SimilarityProvider resolveSimilarity(Mapper.TypeParser.ParserContext parserContext, String name, String value) {
if (parserContext.indexVersionCreated().before(Version.V_3_0_0) &&
"default".equals(value) && parserContext.getSimilarity(value) == null) {
if (parserContext.indexVersionCreated().before(Version.V_3_0_0) && "default".equals(value)) {
// "default" similarity has been renamed into "classic" in 3.x.
value = SimilarityService.DEFAULT_SIMILARITY;
}