Interface StopwordService


public interface StopwordService
Service for managing stopwords in the search engine.
  • Method Summary

    Modifier and Type
    Method
    Description
    addStopword(Stopword stopword, com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Add a single stopword
    addStopwords(List<Stopword> stopword, com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Add a list of stopwords
    void
    deleteStopword(Stopword stopword, com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Delete a stopword
    void
    loadStopwords(LoadStopwordProperties loadStopwordProperties)
    Load stopwords from the supplied configuration properties.
    readStopword(Stopword stopword, com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Read a single stopword
    readStopwords(com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Read all stopwords for an indexable type and locale
  • Method Details

    • readStopwords

      List<Stopword> readStopwords(com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read all stopwords for an indexable type and locale
      Parameters:
      indexableType - The target indexable type
      locale - The target locale
      contextInfo - Context containing information about current tenant and application
      Returns:
      A list of stopwords
    • addStopword

      Stopword addStopword(Stopword stopword, com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Add a single stopword
      Parameters:
      stopword - The stopword to add
      indexableType - The target indexable type
      locale - The target locale
      contextInfo - Context containing information about current tenant and application
      Returns:
      The added stopword
    • addStopwords

      List<Stopword> addStopwords(List<Stopword> stopword, com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Add a list of stopwords
      Parameters:
      stopword - the stopwords to add
      indexableType - The target indexable type
      locale - The target locale
      contextInfo - Context containing information about current tenant and application
      Returns:
      The list of stopwords added
    • deleteStopword

      void deleteStopword(Stopword stopword, com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Delete a stopword
      Parameters:
      stopword - The stopword to delete
      indexableType - The target indexable type
      locale - The target locale
      contextInfo - Context containing information about current tenant and application
    • readStopword

      Optional<Stopword> readStopword(Stopword stopword, com.broadleafcommerce.search.api.type.IndexableType indexableType, Locale locale, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Read a single stopword
      Parameters:
      stopword - The stopword to read
      indexableType - The target indexable type
      locale - The target locale
      contextInfo - Context containing information about current tenant and application
      Returns:
      The stopword, if it exists
    • loadStopwords

      void loadStopwords(LoadStopwordProperties loadStopwordProperties)
      Load stopwords from the supplied configuration properties. Stopwords will not be loaded if the supplied collection for a language already has stopwords.
      Parameters:
      loadStopwordProperties - The configuration properties