Class SearchCommonTranslationProperties

java.lang.Object
com.broadleafcommerce.search.autoconfigure.SearchCommonTranslationProperties

@ConfigurationProperties("broadleaf.search.common.translation") public class SearchCommonTranslationProperties extends Object
Properties related to document translations for search and indexing.
  • Constructor Details

    • SearchCommonTranslationProperties

      public SearchCommonTranslationProperties()
  • Method Details

    • shouldIndexCountrySpecificLanguageDialects

      public boolean shouldIndexCountrySpecificLanguageDialects()
    • shouldIndexLanguagesForTenantDefaultLocale

      public boolean shouldIndexLanguagesForTenantDefaultLocale()
    • isIndexCountrySpecificLanguageDialects

      public boolean isIndexCountrySpecificLanguageDialects()
      Whether to index language dialects identified by country and language, or just the language. Indexing on both the country code and language can vastly reduce indexing performance since translatable fields would require a new dynamic field on every document for each combination of language and country.

      Default (and recommended) approach is to index only on the language.

    • isIndexLanguagesForTenantDefaultLocale

      public boolean isIndexLanguagesForTenantDefaultLocale()
      Whether or not to index the tenant's default locale. If the default locale is not indexed, then the default field values will be used during search.
    • setIndexCountrySpecificLanguageDialects

      public void setIndexCountrySpecificLanguageDialects(boolean indexCountrySpecificLanguageDialects)
      Whether to index language dialects identified by country and language, or just the language. Indexing on both the country code and language can vastly reduce indexing performance since translatable fields would require a new dynamic field on every document for each combination of language and country.

      Default (and recommended) approach is to index only on the language.

    • setIndexLanguagesForTenantDefaultLocale

      public void setIndexLanguagesForTenantDefaultLocale(boolean indexLanguagesForTenantDefaultLocale)
      Whether or not to index the tenant's default locale. If the default locale is not indexed, then the default field values will be used during search.
    • toString

      public String toString()
      Overrides:
      toString in class Object