mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 17:09:18 +00:00
This marks a couple of constants in the `DecayFunctionBuilder` as final. They are written in CONSTANT_CASE and used as constants but not final which is a little confusing and might lead to sneaky bugs.
This commit is contained in:
parent
44827e577e
commit
1abecad21b
@ -65,8 +65,8 @@ public abstract class DecayFunctionBuilder<DFB extends DecayFunctionBuilder<DFB>
|
||||
protected static final String DECAY = "decay";
|
||||
protected static final String OFFSET = "offset";
|
||||
|
||||
public static double DEFAULT_DECAY = 0.5;
|
||||
public static MultiValueMode DEFAULT_MULTI_VALUE_MODE = MultiValueMode.MIN;
|
||||
public static final double DEFAULT_DECAY = 0.5;
|
||||
public static final MultiValueMode DEFAULT_MULTI_VALUE_MODE = MultiValueMode.MIN;
|
||||
|
||||
private final String fieldName;
|
||||
//parsing of origin, scale, offset and decay depends on the field type, delayed to the data node that has the mapping for it
|
||||
|
Loading…
x
Reference in New Issue
Block a user