Skip to content

Commit

Permalink
Always write doc_values param to mapping for wildcard field
Browse files Browse the repository at this point in the history
I made a mistake making this parameter default to false. In 3.0,
I would like to switch the default to true. An index upgraded from
2.x with the default (false) value should specifically emit the
value to avoid implicitly picking up the new default (true).

Signed-off-by: Michael Froh <[email protected]>
  • Loading branch information
msfroh committed Jan 10, 2025
1 parent 0b36599 commit 76cf569
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public static final class Builder extends ParametrizedFieldMapper.Builder {
);
private final Parameter<String> normalizer = Parameter.stringParam("normalizer", false, m -> toType(m).normalizerName, "default");
private final Parameter<Map<String, String>> meta = Parameter.metaParam();
private final Parameter<Boolean> hasDocValues = Parameter.docValuesParam(m -> toType(m).hasDocValues, false);
private final Parameter<Boolean> hasDocValues = Parameter.docValuesParam(m -> toType(m).hasDocValues, false).alwaysSerialize();
private final IndexAnalyzers indexAnalyzers;

public Builder(String name, IndexAnalyzers indexAnalyzers) {
Expand Down

0 comments on commit 76cf569

Please sign in to comment.