Interface CompanyIndexConfigurationContributor
public interface CompanyIndexConfigurationContributor
Implement this interface to contribute mappings and settings to company
indexes in the search engine.
-
Method Summary
Modifier and TypeMethodDescriptionvoidcontributeMappings(long companyId, MappingsHelper mappingsHelper) Adds search engine mappings via the providedMappingsHelper.voidcontributeSettings(long companyId, SettingsHelper settingsHelper) Adds search engine settings via the providedSettingsHelper.
-
Method Details
-
contributeMappings
Adds search engine mappings via the providedMappingsHelper.Implementations of this method should use the
MappingsHelper.putMappings(String)method to add the desired mappings to the search engine.- Parameters:
companyId- the company ID of the index targeted by the new mappings.mappingsHelper- An instance ofMappingsHelperused to apply search engine mappings.
-
contributeSettings
Adds search engine settings via the providedSettingsHelper.Implementations of this method should use the
SettingsHelper.put(String, String)method to add the desired settings to the search engine.- Parameters:
companyId- the company ID of the index targeted by the new settings.settingsHelper- An instance ofSettingsHelperused to apply search engine settings.
-