Class CompoundSuggestConfigProvider
java.lang.Object
de.cxp.ocs.smartsuggest.spi.standard.CompoundSuggestConfigProvider
- All Implemented Interfaces:
SuggestConfigProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfig
(@NonNull String indexName, SuggestConfig defaultSuggestConfig) Retrieve config for a given index.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.cxp.ocs.smartsuggest.spi.SuggestConfigProvider
getPriority
-
Constructor Details
-
CompoundSuggestConfigProvider
-
-
Method Details
-
getConfig
public SuggestConfig getConfig(@NonNull @NonNull String indexName, SuggestConfig defaultSuggestConfig) Description copied from interface:SuggestConfigProvider
Retrieve config for a given index. In case only some index specific values should be set, the default suggest config can be used since it may contain global settings (if not null).- Specified by:
getConfig
in interfaceSuggestConfigProvider
- Parameters:
indexName
-defaultSuggestConfig
- copy of the suggest config that was set as default for the whole service. It can be modified and returned or a different config object can be returned. Returning null is considered equivalent to returning that default config.- Returns:
-