When you use a preview profile to test the search configuration tree, Search Testing takes the segment and language dimension values from the preview profile. However, some sites use profiles only to determine the user’s segment and not the user’s locale. If you want to prevent Search Testing from using the Locale
property of the preview profile, or you want to use a different profile property for determining the language dimension, you can change the value of the testProfileLocaleProperty
property of the LanguageDimensionService
component.
Note: If you choose not to use the preview profile locale (you clear the testProfileLocaleProperty
property) but your search configuration tree includes language as a dimension, then the All Others language dimension is always used when testing with a preview profile.
To use only the segment dimension of a preview profile when testing the search configuration tree:
In your local configuration, create a properties file for the following component:
/atg/search/config/LanguageDimensionService
Set the
testProfileLocaleProperty
to null, as follows:testProfileLocaleProperty^=/Constants.null
To use a different preview profile property to determine the language dimension:
In your local configuration, create a properties file for the following component:
/atg/search/config/LanguageDimensionService
Set the
testProfileLocaleProperty
to the name of the property you want to use.The default setting is:
testProfileLocaleProperty=Locale