Class ProductMetadataPopulator

    • Constructor Detail

      • ProductMetadataPopulator

        public ProductMetadataPopulator()
    • Method Detail

      • extractFieldValue

        protected java.lang.String extractFieldValue​(ProductIndexContainer source,
                                                     LanguageModel language,
                                                     java.lang.String fieldName)
        Helper method to extract the merchandising properties based on given language
        Parameters:
        source - ProductIndexContainer representing the Solr index operation.
        language - the LanguageModel we wish to retrieve products for.
        fieldName - the name of the field we wish to retrieve.
        Returns:
      • sanitiseField

        protected java.lang.String sanitiseField​(java.lang.String field)
        Sanitise field is a method for URL encoding a field which may contain HTML characters.
        Parameters:
        field - the field to encode.
        Returns:
        the sanitised version.
      • extractLanguage

        protected java.lang.String extractLanguage​(java.lang.String translatedField)