Remove deprecated FieldNamesFieldMapper.Builder#index (#37305)
The method calls "enabled" in addition to what the super.index() does, but this seems to be done explicitely now in the TypeParsers `parse` method. The removed method has been deprecated since at least 6.0. Also making some of the Builders methods and ctos private since they are only used internally in this class.
This commit is contained in:
parent
757932a975
commit
0a93a0358b
|
@ -73,21 +73,14 @@ public class FieldNamesFieldMapper extends MetadataFieldMapper {
|
|||
}
|
||||
}
|
||||
|
||||
public static class Builder extends MetadataFieldMapper.Builder<Builder, FieldNamesFieldMapper> {
|
||||
private static class Builder extends MetadataFieldMapper.Builder<Builder, FieldNamesFieldMapper> {
|
||||
private boolean enabled = Defaults.ENABLED;
|
||||
|
||||
public Builder(MappedFieldType existing) {
|
||||
private Builder(MappedFieldType existing) {
|
||||
super(Defaults.NAME, existing == null ? Defaults.FIELD_TYPE : existing, Defaults.FIELD_TYPE);
|
||||
}
|
||||
|
||||
@Override
|
||||
@Deprecated
|
||||
public Builder index(boolean index) {
|
||||
enabled(index);
|
||||
return super.index(index);
|
||||
}
|
||||
|
||||
public Builder enabled(boolean enabled) {
|
||||
private Builder enabled(boolean enabled) {
|
||||
this.enabled = enabled;
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue