Adding A New Live SettingΒΆ
Add new live setting to
IndexLiveSettingsinluceneserver.protousing 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_SETTINGSwhich is used when the field is not specified in the committed stateAdd validation to
validateLiveSettingsmethod
- In
Add to
LiveSettingsV2Commandin 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