mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 01:19:02 +00:00
Mappings: Allow _version to use disk
as a doc values format.
VersionFieldMapper.defaultDocValuesFormat claims that the default is `disk`. This is not used to choose the DV format in the index but for mappings serialization in order to know when the _version doc values format is different from the default format. This made it impossible to use the `disk` doc values format since mappings would never retain that information at serialization time. Close #6523
This commit is contained in:
parent
5b919d4e4f
commit
e2da2114e7
@ -102,11 +102,6 @@ public class VersionFieldMapper extends AbstractFieldMapper<Long> implements Int
|
||||
super(new Names(NAME, NAME, NAME, NAME), Defaults.BOOST, Defaults.FIELD_TYPE, null, null, null, null, docValuesFormat, null, null, null, ImmutableSettings.EMPTY);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String defaultDocValuesFormat() {
|
||||
return "disk";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void preParse(ParseContext context) throws IOException {
|
||||
super.parse(context);
|
||||
|
Loading…
x
Reference in New Issue
Block a user