The Oracle ATG Web Commerce platform includes an implementation of the VariantProducer
interface, atg.repository.search.indexing.producer.LocaleVariantProducer
, for generating variant documents for different locales. This class has a locales
property where you specify the list of locales to generate variants for. For example:
locales=en_US,fr_FR
You specify the VariantProducer
components to use by setting the variantProducers
property of the IndexingOutputConfig
component. Note that this property is an array; you can specify any number of VariantProducer
components, and the IndexingOutputConfig
will generate a separate variant for each possible combination of values of the variant criteria. For example, suppose you use LocaleVariantProducer
and the locales
property is set as shown above. If you add a second VariantProducer
that creates three variants (1, 2, and 3), the total number of variants generated for each repository item would be six (French 1, English 1, French 2, English 2, French 3, and English 3).