@nosto/search-js
    Preparing search index...

    Function nostoThumbnailDecorator

    • Replaces full size images with thumbnail sized versions. Performs the following replacements based on availability of hash fields:

      • imageHash -> imageUrl
      • thumbHash -> thumbUrl
      • alternateImageHashes -> alternateImageUrls
      • sku.imageHash -> sku.imageUrl

      Parameters

      Returns (hit: SearchProduct) => SearchProduct