Class CompoundSuggestConfigProvider

java.lang.Object
de.cxp.ocs.smartsuggest.spi.standard.CompoundSuggestConfigProvider
All Implemented Interfaces:
SuggestConfigProvider

public class CompoundSuggestConfigProvider extends Object implements SuggestConfigProvider
  • Constructor Details

  • 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 interface SuggestConfigProvider
      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: