Removes not relevant part of the bw compat test.
This commit is contained in:
parent
81fd2169cf
commit
d898c0a6b0
|
@ -460,8 +460,7 @@ public class TypeParsers {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static SimilarityProvider resolveSimilarity(Mapper.TypeParser.ParserContext parserContext, String name, String value) {
|
private static SimilarityProvider resolveSimilarity(Mapper.TypeParser.ParserContext parserContext, String name, String value) {
|
||||||
if (parserContext.indexVersionCreated().before(Version.V_3_0_0) &&
|
if (parserContext.indexVersionCreated().before(Version.V_3_0_0) && "default".equals(value)) {
|
||||||
"default".equals(value) && parserContext.getSimilarity(value) == null) {
|
|
||||||
// "default" similarity has been renamed into "classic" in 3.x.
|
// "default" similarity has been renamed into "classic" in 3.x.
|
||||||
value = SimilarityService.DEFAULT_SIMILARITY;
|
value = SimilarityService.DEFAULT_SIMILARITY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue