Skip to content

Commit

Permalink
Move comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrik-es committed Oct 10, 2023
1 parent 78734b9 commit 89641ee
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,6 @@ public static class Builder extends MetadataFieldMapper.Builder {
(previous, current, conflicts) -> (previous.value() == current.value()) || (previous.value() && current.value() == false)
);

/*
* The default mode for TimeSeries is left empty on purpose, so that mapping printings include the synthetic
* source mode.
*/
private final Parameter<Mode> mode;
private final Parameter<List<String>> includes = Parameter.stringArrayParam(
"includes",
Expand All @@ -125,6 +121,7 @@ public Builder(IndexMode indexMode, IndexVersion indexVersion) {
this.mode = new Parameter<>(
"mode",
true,
// The default mode for TimeSeries is left empty on purpose, so that mapping printings include the synthetic source mode.
() -> getIndexMode() == IndexMode.TIME_SERIES && indexVersion.between(IndexVersion.V_8_7_0, IndexVersion.V_8_10_0)
? Mode.SYNTHETIC
: null,
Expand Down

0 comments on commit 89641ee

Please sign in to comment.