Convert IndexVersion.CURRENT to a method with a pluggable interface (#97132)

This commit is contained in:
Simon Cooper 2023-06-27 14:47:32 +01:00 committed by GitHub
parent 936dbc0379
commit a873e26cf7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
116 changed files with 315 additions and 289 deletions

View file

@ -29,7 +29,7 @@ public class AnnotatedTextFieldTypeTests extends FieldTypeTestCase {
}
public void testFetchSourceValue() throws IOException {
MappedFieldType fieldType = new AnnotatedTextFieldMapper.Builder("field", IndexVersion.CURRENT, createDefaultIndexAnalyzers())
MappedFieldType fieldType = new AnnotatedTextFieldMapper.Builder("field", IndexVersion.current(), createDefaultIndexAnalyzers())
.build(MapperBuilderContext.root(false))
.fieldType();