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) {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue