Skip to main content

Notifications

Supply chain | Supply Chain Management, Commerce
Answered

Very slow update of product search in eCommerce

Posted on by 2,063

Update:   I learned today that it is not sufficient to run 1040.  You also need to run 1150 - Catalogs and/or 1110 - Customers in order to update the product name.  The reason is that in PLP (Product List page) the product name attribute is used (from EcoResTextValue + a bunch of other tables), while the PDP (Product Details Page) is using the product translatio table (EcoResProductTranslation).  And the distribution job 1040 do not distribute the table EcoResTextValue.  And in such cases the Azure Search is not being updated with 1040. 

----------------------------------------

When updating a product name, it can take a very long time before the product name is changed in the eCommerce search result.  On the PDP (Product Details Page), the product name is updated quite soon.  I don't understand why the update of the search results are so slow (and in many cases never starts returning updated product names).  We are using the parameter "ProductSearch.UseAzureSearch", and I expect that this means that some services are used to return the search results.

I have a suspicion that this may be related to caching or update of caching.  In the SDK I see there is a file named. cache.settings.json and this file is documented here.   In this file there is settings for data on TTL (Time-To-Live) and TTR (Time-To-Refresh) specified in seconds. 

For TTL we see that there are 43200 seconds.  This is 12 hours !!

"FullProductSearchResult": 43200,
"ProductRefiner": 43200,
For TTR we see that there are 900 seconds.  This is 15 minutes !!
"FullProductSearchResult": 900,
"ProductRefiner": 900,
Could the settings in the cache.settings.json be the cause of why there is such a very long delay on when the search ?
Is there a way to "flush"  any cache to rebuild the AzureSearch index? (I have tried to use ?cachebypass=get got without any effect)
  • Suggested answer
    WillWU Profile Picture
    WillWU 22,350 on at
    RE: Very slow update of product search in eCommerce

    Thank you for your sharing.

  • Verified answer
    Kurt Hatlevik Profile Picture
    Kurt Hatlevik 2,063 on at
    RE: Very slow update of product search in eCommerce

    I think I have figured it out !  After a lot of debugging and code review I have finally found the reason. We have to remove the onlinestore from the catalog, as I have done here in another test environment.

    pastedimage1644158492079v1.png

    Then we ran 9999, and it started working again.  The reason why we see this change in behavior is the introduction of B2B partner catalogs on the ecommerce, that is yet not GA, but have somehow been partly implemented.

    But somehow this new code affects the behavior of the Azure product Search. If you have a catalog assigned to a channel you may see errors like this in the sitebuilder:
    pastedimage1644158522548v2.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans