Unpublished content is shown in SXA Storefront sites


Description

Unpublished content might be displayed when browsing product pages or in SXA Storefront search results. The issue happens because the Web index contains all entity versions of the product instead of keeping only the latest published one.

Solution

To resolve the issue, consider one of the following options: