Adding A New Live SettingΒΆ
Add new live setting to
IndexLiveSettings
inluceneserver.proto
using the appropriate wrapped primitive and regenerate the protobuf filesAdd abstract getter method to
IndexState.java
- In
ImmutableIndexState.java
: Create a class field to hold the instance value
Assign instance value in the constructor
Implement the getter method and return the class field
Add default value in
DEFAULT_INDEX_LIVE_SETTINGS
which is used when the field is not specified in the committed stateAdd validation to
validateLiveSettings
method
- In
Add to
LiveSettingsV2Command
in cliAccess the new live setting by calling
indexStateManager.getCurrent().get<new_live_setting_name>()
Add _set/_default/_invalid tests for the new property to
ImmutableIndexStateTest.java