Skip to content

Commit

Permalink
Mappings: Allow _version to use disk as a doc values format.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jpountz committed Jun 19, 2014
1 parent 5b919d4 commit e2da211
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -102,11 +102,6 @@ public VersionFieldMapper() {
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);
Expand Down

0 comments on commit e2da211

Please sign in to comment.