The default approach for Sitecore and xCommerce for indexing commerce items is to get items languages in as many version as you have defined in xCommerce.
But not always this behavior is acceptable. In our scenario particular site languages versions were kept in Home item of every page. Basing on that, we are able to make it as a point of truth and during indexing match only proper languages versions to each site.
The result will be reduction of unnecessary entries in the index. What will have an influence on time and performance.
To achieve this we need to implement new Crawler which will do new logic. It should inherit form default xCommerce crawler. Take a look below:
Afterwards we need to register this in the index configuration
Thank you :)
No comments:
Post a Comment